sum of cells until reach empty cell
In B2, enter
=IF(A2=0,SUM(INDEX(A:A,MAX(IF($A$1:A1=0,ROW($A$1:A 1)))+1):A1),"")
which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
and copy down.
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"phsdave" wrote in message
...
I would like to get the sum of 7 cells which restarts when a cell
containes a
zero.
I want to have a result in an ajoining cell of the sum to a maximum of 7
cells in the ajoining column
|