+ Reply to Thread
Results 1 to 4 of 4

Formula for consecutive days worked

  1. #1
    Registered User
    Join Date
    06-17-2011
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2019
    Posts
    69

    Formula for consecutive days worked

    I need a formula showing how many consecutive days worked, based on a date in column "E". It should only count the day as worked if column "L" for that date is blank.



    Any help is appreciated!consecutive days example.xlsx

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula for consecutive days worked

    It would be really helpful to show an example of what result you want, since what you described in your post could be interpreted in more than one way.

    "Consecutive days" would normally be "consecutive days ending on some date". So I added a column showing for each day, the number of consecutive days works up until that day.

    If that's not what you want please show an example of the result
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-17-2011
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2019
    Posts
    69

    Re: Formula for consecutive days worked

    I found a mistake. It should count the number of consecutive days worked unless something is in column "L", On the example, it shows correctly 8 consecutive days as of 8/5/22. However, the next date is 8/8/22 (which is not consecutive.) So It should start over at 1. Instead, on this example it counts that date.

    Attachment says:

    Wed 08/03/2022 06:51 AM - 03:30 PM 8.00 002191 6
    Thu 08/04/2022 06:47 AM - 03:30 PM 8.00 002191 7
    Fri 08/05/2022 06:52 AM - 03:30 PM 8.00 002191 8
    Mon 08/08/2022 06:51 AM - 03:30 PM 8.00 002191 9
    Tue 08/09/2022 06:51 AM - 03:30 PM 8.00 002191 10
    Wed 08/10/2022 06:54 AM - 03:31 PM 8.00 002191 11

    Should be:

    Wed 08/03/2022 06:51 AM - 03:30 PM 8.00 002191 6
    Thu 08/04/2022 06:47 AM - 03:30 PM 8.00 002191 7
    Fri 08/05/2022 06:52 AM - 03:30 PM 8.00 002191 8
    Mon 08/08/2022 06:51 AM - 03:30 PM 8.00 002191 1
    Tue 08/09/2022 06:51 AM - 03:30 PM 8.00 002191 2
    Wed 08/10/2022 06:54 AM - 03:31 PM 8.00 002191 3
    Last edited by stryped; 08-11-2022 at 12:16 PM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula for consecutive days worked

    That's why I said you need to show sample results.

    So you want a count of consecutive calendar days, regardless of whether a day is in your list. So if a date is missing from your list, it automatically resets the count?

    To do that you have to convert the text in column E to real dates. See attached.
    Attached Files Attached Files

+ 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. Attendance Tracker: Variables & Counting Consecutive Days Worked with Reset
    By kramerc319 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-28-2021, 02:32 AM
  2. Line-Graph for consecutive days worked
    By Tadsilverthorn in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-30-2020, 04:30 AM
  3. Counting consecutive days worked
    By csweezy in forum Excel General
    Replies: 20
    Last Post: 01-04-2020, 12:41 AM
  4. Counting ONLY consecutive days worked starting from a user defined date
    By Tazdude24 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2018, 09:47 PM
  5. Replies: 16
    Last Post: 10-01-2018, 02:02 AM
  6. [SOLVED] Formatting of consecutive days worked
    By ktbb0312 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-23-2015, 05:46 PM
  7. Replies: 2
    Last Post: 11-05-2011, 07:29 AM

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