Sub TRL_Log()
Dim a As Range
Application.ScreenUpdating = False
Sheets("Master Log").Copy
ActiveSheet.Name = "TRL Log"
On Error Resume Next
For Each a In Range("A1:A" & Range("B" & Rows.Count).End(xlUp).Row).SpecialCells(xlCellTypeBlanks).Areas
a.Value = a(1).Offset(-1).Value
Next a
Range("P1:P" & Range("B" & Rows.Count).End(xlUp).Row).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
On Error GoTo 0
Range("F:F,I:J,P:P").Delete
Range("H:H").Insert
Range("H1").Value = "L/W"
Range("H2:H" & Range("B" & Rows.Count).End(xlUp).Row).FormulaR1C1 = "=IF(Len(RC[-2])*LEN(RC[-1]),RC[-2]/RC[-1],"""")"
Range("H:H").NumberFormat = "0.0"
Columns.AutoFit
Application.ScreenUpdating = True
End Sub
Bookmarks