Results 1 to 3 of 3

Count consecutive networkdays rows with a cell containing "Yellow", "Red" and reset count

Threaded View

  1. #1
    Registered User
    Join Date
    03-09-2011
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2016, O365
    Posts
    18

    Count consecutive networkdays rows with a cell containing "Yellow", "Red" and reset count

    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
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 02-20-2015, 01:13 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. [SOLVED] Cell Formula to count time with "Greater Than or Equal to" and "Less Than"
    By chriswhite1982 in forum Excel General
    Replies: 3
    Last Post: 06-16-2013, 12:30 AM
  4. Return "green", "yellow" or "red" from date/age and priority ranking
    By Cantaloop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 12:12 AM
  5. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  6. Replies: 1
    Last Post: 07-16-2010, 02:44 AM
  7. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1