Sumproduct from previously blank row
=SUM(A5:INDEX(A1:A5,MAX(IF(A1:A5="",ROW(A1:A5)))+1 )*B5:INDEX(B1:B5,MAX(IF(A1:A5="",ROW(A1:A5)))+1))
which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Jim" wrote in message
...
I would like to create a macro that will perform a sumproduct for all row
above where I start, up to the first cell after a blank row.
IE:
1: 2 | 4
2: 4 | 6
3:
4: 6 | 8
5: 10 | 12
6: Sumproduct=(A4:A5,B4:B5)
Where, A4:A5,B4:B5 could be any range UP to the next blank row.
Thanks
|