I have a list of times like this:
Start time End Time Difference between times
10:31:53 10:34:40 0.000115741
10:34:50 10:35:21 0.000196759
10:35:38 10:37:17 0.000138889
10:37:29 10:37:52 0.000358796
10:38:23 10:40:01 0.000324074
10:40:29 10:40:59 4.62963E-05
10:41:03 10:41:46 0.000173611
10:42:01 10:42:33 0.000104167
I am trying to set up VBA that finds differences that are greater than 40 minutes (0.02777778) and once it finds it it copies the start and end times. There may be more than one gap time that is greater than 40 minutes so I would like to copy them all (preferably to the right apposed to vertically like a list).
Here is what I have so far:
Dim i As Range
For Each i In Range("F14:F30000").SpecialCells(xlCellTypeVisible)
If i.Value > 0.02777778 Then
i.Select
Selection.Offset(, -2).Copy Destination:=Sheets("Time Gaps").Range("B3")
i.Select
Selection.Offset(1, -3).Copy Destination:=Sheets("Time Gaps").Range("D3")
End If
Next i
But it only copies the last gap time that meets the criteria. How can I make it so it records all of them?
Thanks in advance!