This macro will insert your formulas directly into the range of rows you designate with the BR and LR variables at the top of the macro. I set this to 1000 rows to test, but you can change those values to what you want.
Option Explicit
Sub AddFormulas()
Dim BR As Long, LR As Long
BR = 201
LR = 1000
Range("A" & BR, "A" & LR).FormulaR1C1 = "=SUM(1,R[-1]C1)"
Range("B" & BR, "B" & LR).FormulaR1C1 = "=MOD(SUM(R[-11]C2,R[-18]C2),2)"
Range("C" & BR, "C" & LR).FormulaR1C1 = "=MOD(SUM(R[-8]C3,R[-11]C3,R[-13]C3,R[-18]C3),2)"
Range("D" & BR, "D" & LR).FormulaR1C1 = "=MOD(SUM(MOD(RC2,POWER(2,18)-1)+RC3),2)"
Range("E" & BR, "E" & LR).FormulaR1C1 = "=IF(RC4=0,1,-1)"
End Sub
Bookmarks