How to check consecutive rows and flag if not blank
Hi All,
I have a sheet where I'm tracking utilization on a weekly basis.
I need to check if utilization gets over a threshold on 3 consecutive rows.
but I'm not sure how to do this.
In the example below Row 7 should have something on the "Alert?" Column, as it passed the threshold 3 times in a row.
Best Answer
-
You would start by inserting an Auto-Number type column (called "Auto" in this example). Next you would set up a text/number column (called "Row" in this example) with this column formula:
=MATCH(Auto@row, Auto:Auto, 0)
Then to flag the Alert column you would use something along the lines of...
=IF(COUNTIFS(Row:Row, AND(@cell>= Row@row - 2, @cell<= Row@row), Threshold:Threshold, @cell = "High") = 3, "ALERT")
Answers
-
You would start by inserting an Auto-Number type column (called "Auto" in this example). Next you would set up a text/number column (called "Row" in this example) with this column formula:
=MATCH(Auto@row, Auto:Auto, 0)
Then to flag the Alert column you would use something along the lines of...
=IF(COUNTIFS(Row:Row, AND(@cell>= Row@row - 2, @cell<= Row@row), Threshold:Threshold, @cell = "High") = 3, "ALERT")
-
Thank you very much! it worked like a charm
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 68K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 85 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!