Can you help calculate consecutive event occurs?

DayVe3000

New Member
Joined
Aug 2, 2017
Messages
3
Hi Guys,
I have a sheet where I am recording the number of days where an event happens (this is marked with a “1”). What I am wanting to do is I am wanting to count how many days from the last day where this event occurs (going back as far as the last 90 days).
I’ve read a through things via a Google search – but I’m still lost.

A brief example to my sheet can be seen below along with the results I'd expect in Collumn H if I could get a formulae to work.

Example.jpg


Thanks in Advance for any help.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Welcome to the forums!

Try:


Excel 2013/2016
ABCDEFG
17/27/20177/28/20177/30/20177/31/20178/1/2017Result
2Subject A001000
3Subject B111115
4Subject C000112
5Subject D110011
6Subject E111115
7Subject F110112
Sheet2
Cell Formulas
RangeFormula
G2{=COUNT(B2:F2)-IFERROR(LARGE(IF(B2:F2=0,COLUMN(B2:F2)-1),1),0)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,374
Messages
6,124,573
Members
449,173
Latest member
Kon123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top