How do I add consecutive numbers but start over at a break in the.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I add consecutive numbers but start over at a break in them. I'm
trying to calculate consecutive days of attendance. One might have had 20
days in a row missed one and then I need to start over.

Thanks.
 
Does this work for you?

Attendance starting in A1.

In B1 enter:
=--(A1>0)
In B2 enter:
=(A2>0)*(1+B1)
And drag down to copy as needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top