Dim t1, t2, t3, t4, t5, t6, t7
Dim formula1 As String
Dim formula1_time
Dim formula2 As String
Dim formula2_time
Dim formula3 As String
Dim formula3_time
Dim formula4 As String
Dim formula4_time
Dim formula5 As String
Dim formula5_time
Dim formula6 As String
Dim formula6_time
formula1 = "=if(row()-row([#Headers])=1,A2,A2+B1)"
formula2 = "=if(row()-row([#Headers])=1,[@[Column1]],[@[Column1]]+B1)"
formula3 = "=if(row()-row([#Headers])=1,[@[Column1]],[@[Column1]]+indirect(address(row()-1,column())))"
formula4 = "=if(row()-row([#Headers])=1,[@[Column1]],[@[Column1]]+offset([@Column5],-1,0))"
formula5 = "=if(row()-row([#Headers])=1,[@[Column1]],[@[Column1]]+indirect(""b"" & row() - 1))"
formula6 = "=SUM(INDEX([Column1],1):[@[Column1]])"
t1 = Timer
Range("B2").Formula = formula1
t2 = Timer
Range("C2").Formula = formula2
t3 = Timer
Range("D2").Formula = formula3
t4 = Timer
Range("E2").Formula = formula4
t5 = Timer
Range("F2").Formula = formula5
t6 = Timer
Range("G2").Formula = formula6
t7 = Timer
formula1_time = t2 - t1
formula2_time = t3 - t2
formula3_time = t4 - t3
formula4_time = t5 - t4
formula5_time = t6 - t5
formula6_time = t7 - t6
Range("B2:G10000").NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* """" - """"??_);_(@_)"
'Call MsgBox("Results: " & (t2 - t1) & ", " & (t3 - t2) & ", " & (t4 - t3))
Call LogIt("formula1: " & formula1)
Call LogIt("time: " & formula1_time)
Call LogIt("formula2: " & formula2)
Call LogIt("time: " & formula2_time)
Call LogIt("formula3: " & formula3)
Call LogIt("time: " & formula3_time)
Call LogIt("formula4: " & formula4)
Call LogIt("time: " & formula4_time)
Call LogIt("formula5: " & formula5)
Call LogIt("time: " & formula5_time)
Call LogIt("formula6: " & formula6)
Call LogIt("time: " & formula6_time)