Hi ExcelAudio,
This yields the 58:49
Sub TtW(): Dim C As Range, U As String, Tin As Date, Tout As Date, r As Long
Dim EndRow As Long: EndRow = Range("B" & Rows.Count).End(xlUp).row
For Each C In Range("B2:B" & EndRow)
If C.Offset(1, 0) = C And C.Offset(1, 1) = C.Offset(0, 1) _
And C.Offset(1, 7) = C.Offset(0, 7) Then GoTo GetNext
U = C.Offset(0, 7): Tin = C.Offset(0, 2): r = C.row
Do Until Cells(r, 2) <> C And Cells(r, 9) = U: r = r + 1
If r > EndRow Then GoTo GetNext
Loop
Tout = Cells(r, 4): Cells(r, 5) = Tout - Tin
GetNext: Next: End Sub
Bookmarks