Consecutive problems!

paulontour

New Member
Joined
Jul 28, 2011
Messages
13
Hi

I have a table which has entries made every day. The entries would be a name in Col A, whether something was "Suitable" in Col B and a date in Column C. I would like a formula or a pivot table to count back and show the number of consecutive "Suitable" entries. However, if an entry in Col B is "Unsuitable", I would like it to start again (therefore it has to be a rolling count).

The table created would need to show the name of the person, followed by the number of consecutive "Suitable" entries to date.

Hope you can help

Paul.
 
A small modification on Domenic's formula:

=IF(ROWS(E$2:E2)<=SUMPRODUCT(--($A$2:$A$15=E$1),--ISNUMBER($C$2:$C$15)),INDEX($B$2:$B$15,LARGE(IF($A$2:$A$15=E$1,IF(ISNUMBER($C$2:$C$15),ROW($B$2:$B$15)-ROW($B$2)+1)),ROWS(E$2:E2))),"")

Markmzz
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
A small modification on Domenic's formula:

=IF(ROWS(E$2:E2)<=SUMPRODUCT(--($A$2:$A$15=E$1),--ISNUMBER($C$2:$C$15)),INDEX($B$2:$B$15,LARGE(IF($A$2:$A$15=E$1,IF(ISNUMBER($C$2:$C$15),ROW($B$2:$B$15)-ROW($B$2)+1)),ROWS(E$2:E2))),"")

Markmzz

Thanks Mark, I overlooked it...
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,707
Members
452,939
Latest member
WCrawford

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