I am capturing 3 columns of data (~150-180 rows) every day in order to count the consecutive status if it is "Yellow" or "Red". If it is green (or "None", or blank) I want to reset the counter to 0. The reason for the counts will be to determine the consecutive Yellow or Red that exceeds some value (ie, >=5), and then determine how many times (the sets of 5) the condition of Yellow or Red occurred in some period (ie, 15 days).
This link below provides some examples of how to get the current consecutive which is also valuable, but I also need it to count how many times the consecutive condition occurred in a timeframe.
Linkback: https://www.excelforum.com/excel-gen...s-entered.html
Adding helper columns for formulas would be ok, but I also like MarvinP's function as well. Also, If there is a better way to format the data, I'm open to that as well.
I would appreciate any help I can get....
TIA,
Don
Based on 254 working days in our calendar year this table will grow to approximately ~40,000-46,000 rows in a year.
The Data:
ID | Date | Color
50394 1/11/2021 YELLOW
50394 1/12/2021 YELLOW
50394 1/13/2021 YELLOW
50394 1/14/2021 YELLOW
50394 1/15/2021 YELLOW
50394 1/18/2021 YELLOW
50394 1/19/2021 YELLOW
50394 1/20/2021 YELLOW
50394 1/21/2021 YELLOW
50394 1/22/2021 YELLOW
50394 1/25/2021 YELLOW
50394 1/26/2021 YELLOW
50394 1/27/2021 YELLOW
50394 1/28/2021 YELLOW
50394 1/29/2021 GREEN
50394 1/31/2021 GREEN
50394 2/1/2021 GREEN
50394 2/2/2021 YELLOW
50394 2/3/2021 YELLOW
49163 1/11/2021 GREEN
49163 1/12/2021 GREEN
49163 1/13/2021 GREEN
49163 1/14/2021 GREEN
49163 1/15/2021 GREEN
49163 1/18/2021 GREEN
49163 1/19/2021 GREEN
49163 1/20/2021 YELLOW
49163 1/21/2021 YELLOW
49163 1/22/2021 YELLOW
49163 1/25/2021 YELLOW
49163 1/26/2021 YELLOW
49163 1/27/2021 YELLOW
49163 1/28/2021 YELLOW
49163 1/29/2021 GREEN
49163 1/31/2021 GREEN
49163 2/1/2021 GREEN
49163 2/2/2021 GREEN
49163 2/3/2021 GREEN
Bookmarks