Hello all
Can I have help please on this loop please.
I want to complete a sumifs statement in cell "D9" and then replicate this every 4 cell down in column "D" until I get to cell "D2597"
Tried to put this together but failed
Can I have help please on this loop please.
I want to complete a sumifs statement in cell "D9" and then replicate this every 4 cell down in column "D" until I get to cell "D2597"
Tried to put this together but failed
Code:
Dim i As Integer
Range("D9").Select
i = 1
Do Until i > 2597
Cells(i, 1).Value = .FormulaR1C1 = "=SUMIFS('Data'!C18,'Data'!C[5],R[-1]C[-2],'Data'!C22,Sheet1!R3C4,'Data'!C23,Sheet1!R5C3)"
i = i + 4
Loop