+ Reply to Thread
Results 1 to 30 of 30

Count consecutive dates as one occurrence

Hybrid View

  1. #1
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Count consecutive dates as one occurrence

    The sheet is protected so I can't do anything with it. However I suggest a helper column for each person with a formula like:
    =IF(AND(NOT(ISBLANK(C2)),C2<>C1),1,0).

    This formula checks to see that cell is not blank and that it is different than the cell above it. If this is true, then it is the start of an occurrence. You can then use this helper column in a SUMIFS formula to count absences by type. The helper columns can be hidden.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  2. #2
    Registered User
    Join Date
    01-09-2017
    Location
    Portland OR
    MS-Off Ver
    2013
    Posts
    14

    Re: Count consecutive dates as one occurrence

    Thanks dflak. If I need the formula to begin when any cell in Col D reaches >40, is would this be hard to write into the formula? BTW I think the password is phs for that sheet. I couldn't get it to open in Excel. Not familiar with how this site handles attachments. I appreciate your suggestion and will try it.

  3. #3
    Registered User
    Join Date
    01-09-2017
    Location
    Portland OR
    MS-Off Ver
    2013
    Posts
    14

    Re: Count consecutive dates as one occurrence

    Doesn't work in this instance but I do like the use of IF(AND(NOT(ISBLANK all in a row!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 17
    Last Post: 02-14-2024, 07:07 AM
  2. Count number of occurrence between dates
    By Wskip49 in forum Excel General
    Replies: 5
    Last Post: 09-14-2016, 03:06 PM
  3. [SOLVED] Count Consecutive Dates
    By Sasquatch2014 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-16-2016, 12:47 AM
  4. Count No. of occurrence of consecutive values
    By rvkadu1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-02-2013, 06:42 AM
  5. Count Occurrence of date (6th April) between two dates...
    By noonoogizmo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2012, 06:21 AM
  6. Replies: 12
    Last Post: 07-25-2012, 10:13 PM
  7. Replies: 4
    Last Post: 03-29-2012, 09:01 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