An array approach. Please make a copy of your workbook and test on the copy.
Option Explicit
Sub TryThis()
Dim wb As Workbook
Dim ws As Worksheet
Dim rngPlant As Range
Dim rngDest As Range
Dim pArr() As Variant
Dim dArr() As Variant
Dim i As Integer
Dim j As Integer
Dim k As Integer
Set wb = ActiveWorkbook
Set ws = wb.Sheets("Monthly Fuel Summary")
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
With ws
Set rngPlant = .Range("AD3", .Range("AF65532").End(xlUp))
pArr = rngPlant
End With
ReDim dArr(1 To UBound(pArr), 1 To 2)
j = 0
For i = LBound(pArr) To UBound(pArr)
If pArr(i, 1) <> "" Then
j = j + 1
dArr(j, 1) = pArr(i, 1)
End If
Next i
j = 0
For k = LBound(pArr) To UBound(pArr)
If pArr(k, 2) = "Total" Then
j = j + 1
dArr(j, 2) = pArr(k, 3)
End If
Next k
Set rngTarget = ws.Range("O3")
rngTarget.Resize(j, 2) = dArr
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub
Bookmarks