Beruflich Dokumente
Kultur Dokumente
End If
Filename = Dir()
Loop
Columns("B:K").Select
Selection.Delete Shift:=xlToLeft
Columns("C:C").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Delete Shift:=xlToLeft
Columns("A:B").Select
ActiveSheet.Range("$A$1:$B$15000").RemoveDuplicates Columns:=Array(1, 2), _
Header:=xlYes
Columns("A:B").Select
Selection.Copy
Windows("3G Daily main KPI.txt").Activate
Sheets("Cell report").Select
ActiveSheet.Paste
CR.Close
Worksheets("data").Activate
Columns("F:F").Select
Selection.Copy
Columns("H:H").Select
ActiveSheet.Paste
Range("H1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "Site ID"
Columns("H:H").Select
Selection.Replace What:="*_", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="-*", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Columns("D:D").Select
Selection.Copy
Range("D1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Cell report").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.Delete
' fill range FUNCATION
'1. week number B col
Worksheets("data").Activate
Columns("F:F").Select
Selection.Replace What:="2935_B3", Replacement:="2935-B3", LookAt:=xlPart _
, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Range("B2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
On Error Resume Next
Kill "C:\3G congestion\*report*.xls"
On Error GoTo 0
'2. fill range col from AP - AW
Worksheets("data").Activate
lastrow = Cells(Rows.Count, "G").End(xlUp).Row
Range("AP2").Select
ActiveCell.FormulaR1C1 = "=COUNTIFS(C[-35],RC[-35],C[-33],"">100"")"
Range("AP2").AutoFill Destination:=Range("AP2:AP" & lastrow), Type:=xlFillDefault
'fill C column
lastrow = Cells(Rows.Count, "G").End(xlUp).Row
Range("AQ2").Select
ActiveCell.FormulaR1C1 = "=COUNTIFS(C[-36],RC[-36],C[-33],"">100"")"
Range("AQ2").AutoFill Destination:=Range("AQ2:AQ" & lastrow), Type:=xlFillDefault
lastrow = Cells(Rows.Count, "G").End(xlUp).Row
Range("AR2").Select
ActiveCell.FormulaR1C1 = "=COUNTIFS(C[-37],RC[-37],C[-33],"">100"")"
Range("AR2").Select
Range("AR2").AutoFill Destination:=Range("AR2:AR" & lastrow), Type:=xlFillDefault
lastrow = Cells(Rows.Count, "G").End(xlUp).Row
Range("AS2").Select
ActiveCell.FormulaR1C1 = "=COUNTIFS(C[-38],RC[-38],C[-31],"">-90"")"
Range("AS2").AutoFill Destination:=Range("AS2:AS" & lastrow), Type:=xlFillDefault
Range("AU2").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-5]=0,""Cell without cong"",IF(OR(RC[-5]=1,RC[-5]=2),""Wait next
week"",IF(OR(RC[-5]=3,RC[-5]=4),""Need Mointer"",""Need Fast Action"")))"
Range("AV2").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-5]=0,""Cell without cong"",IF(OR(RC[-5]=1,RC[-5]=2),""Wait Next
days"",IF(OR(RC[-5]=3,RC[-5]=4),""Need Moniter"",""Need Fast Action"")))"
Range("AW2").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-5]=0,""Cell without cong"",IF(OR(RC[-5]=1,RC[-5]=2),""Wait Next
days"",IF(OR(RC[-5]=3,RC[-5]=4),""Need Moniter"",""Need Fast Action"")))"
Range("AW2").AutoFill Destination:=Range("AW2:AW" & lastrow),
Type:=xlFillDefault
Cells.Select
Range("O1").Activate
Selection.Replace What:="#DIV/0", Replacement:="0", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Range("A2").Select
End Sub