I keep getting an "overflow" error on t1.
There is a number in column F or JD from 2450000.5 to 2456666.5 in every one of the cells and each successive cell only differs by only 10 or so.
No cell is empty throughout the range.
Code
Dim t1 As Double, t2 As Double, JD(100) As Double
maxn = Cells(Rows.Count, "F").End(xlUp).Row - 2
For k = 1 To maxn
'checks for empty cells
If JD(k) = "" Or JD(k + 1) = "" Or JD(k + 2) = "" Then
MsgBox ("JD=nothing")
Exit Sub
End If
t1 = 24 * 3600 * (JD(k) - JD(k + 1))
t2 = 24 * 3600 * (JD(k + 2) - JD(k + 1))
Next k
Display More