Results 1 to 6 of 6

Formula to count days since last accident

Threaded View

  1. #1
    Registered User
    Join Date
    01-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Formula to count days since last accident

    I have a list of dates in Column A, and either "Yes" or "No" in Column B, indicating whether or not there was a work-related accident on that day. Every day, a Yes or No is placed into Column B, next to that day's date.

    Example:

    01/04/2012 No
    01/05/2012 Yes
    01/06/2012 No
    01/07/2012 Yes
    01/07/2012 No
    01/09/2012 No
    01/10/2012 No
    01/11/2012 No
    01/12/2012 No
    01/13/2012 No
    01/14/2012
    01/15/2012
    01/16/2012

    I am trying to create a formula that counts the number of "No's" under the last "Yes"... So in the above example, the result of the formula would be a 6. I.E. "There have been 6 days without a work-related accident." And as soon as a "Yes" is entered, the count goes back to zero. If I were to replace the last "Yes" in my example above with a "No" - the result of the formula would be 8.

    I'm trying to do this without utilizing VBA or custom functions... Only with the built-in excel functions. Thanks in advance for any assistance!
    Last edited by KingSmono; 01-13-2012 at 06:35 PM.

Thread Information

Users Browsing this Thread

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

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