• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to group and count

gkintl

New Member
Hi, I would like to the formula to count if there is a "1" in the cell and stop if it encounters a "0". Again, it should start counting from 1, when it comes across a "1" in next cell.

It should look like this

A 1
B 1 2
C 0 0 <<Result
D 1 1
E 0 0
F 1
G 1
H 1 3
J 0 0

Can anyone help me with the formula? rgds,
 
Back
Top