I am trying to pass a variable into an array formula: The variable I would like to use is oCell = “A” & i & “”. The variable oCell would replace A22 in the code below.
For i = 22 To 48
Range(“A” & i & “”) = “‘” & i + 18
Range(“C” & i & “”).FormulaArray = “=SUM((LEFT(AccountList!B2:B5000,2)= A22)*(AccountList!C2:C5000=””Dollars””)* _
(AccountList!R2:R5000>=2000)*AccountList!Q2:Q5000)”
Next i
Thanks,
Joihn