+ Reply to Thread
Results 1 to 12 of 12

Count number of consecutive days by date

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    ksa
    MS-Off Ver
    Excel 365
    Posts
    6

    Count number of consecutive days by date

    dear all

    please i need your help to know the formula for the attached file

    the file mention the worksheet for the employees

    if the employee absent from 1 to 3 consecutive days its mean that absent 1 time

    please i want to know how it make by formula because i have more than 500 employees

    please help me
    Attached Files Attached Files
    Last edited by malek_ali7sas; 02-20-2016 at 07:37 AM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Count number of consecutive days by date

    hi and welcome to the forum
    copy paste below in G2 then hold control and shift together then hit enter to make it array formula2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    ksa
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Count number of consecutive days by date

    thank you sir for your help

    please sir can you help in the attached file

    i have 3 rules in it

    1 rule, how many time he absent from 1 to 3 consecutive days

    2 rule, how many time he absent from 4 to 6 consecutive days

    3 rule, how many time he absent from 7 to 10 consecutive days

  4. #4
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Count number of consecutive days by date

    Hi,

    please see through attachment.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-27-2013
    Location
    ksa
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Count number of consecutive days by date

    thank you sir

    its not what i mean

    what i mean its consecutive days in the same
    for Ex:
    some of employee absent 3 days consecutive its mean deduct 1 day then he attend 4 days then absent 1 day the deduct should be 2 days because he Repeated absence(rules 1)

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Count number of consecutive days by date

    I am signing off due to some wok and Once I am free I will have a look at it,

    May be in meantime someone will pick up this topic

  7. #7
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Count number of consecutive days by date

    thanks for your clarification.i need some more details.please give your requirement for the following emp.id.

    what is the expert the result.

    Emp No. rules A from 1 to 3 days rules B from 4 to 6 days rules C from 7 to 10 days
    20957
    25798
    20809
    20824
    25122
    20840

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Count number of consecutive days by date

    Copy paste below in B2 then hold control and shift together and then hit enter to make it array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag down

    Change red part to {4,5,6} in C2 then In D2 change red part to {7,8,9,10}

    drag down

    check whether it is giving you correct results or not

  9. #9
    Registered User
    Join Date
    02-27-2013
    Location
    ksa
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Count number of consecutive days by date

    check the file please

    this is the rule 1 from 1-3 consecutive day

    thank you for your time
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    02-27-2013
    Location
    ksa
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Count number of consecutive days by date

    thank hemesh for your time


    if expert the result for 50403 i think it should be like this, rule (A) the result 1 his absent consecutive 5&6 Feb , rule (C) it should be 1, his absent consecutive (8,9,10,11,12,13,14,15)Feb

    now in your function it become only on rule (C) =1

  11. #11
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Count number of consecutive days by date

    I tried over this a lot may be I am missing something, I am forwarding this to seniors members of forum, who have more in depth knowledge,hope they will give proper solution to this.
    Last edited by hemesh; 02-21-2016 at 03:22 AM.

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count number of consecutive days by date

    Maybe this will help you.
    I used a helper column on the Master worksheet to count consecutive days following the rules. I an apparent run of consecutive days is interrupted by missing a day, the count starts again. With this amount of data I can't check everything but what I did check, was correct.
    Formula for helper column (G) on Master worksheet. Enter in G2 and fill down. Column G must have a Title or it won't work. This is the most complicated part of the whole problem.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    On Sheet2!B2 enter this formula and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    On Sheet2!C2 enter this formula and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    On Sheet2!D2 enter this formula and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I also created a small summary table totalling the absences for each rule. It should be self explanatory.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Count number of consecutive days and max streak
    By caubetiep1337 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2016, 03:53 AM
  2. Replies: 17
    Last Post: 08-03-2015, 06:15 AM
  3. Count Consecutive Days from Today's Date
    By sinspawn56 in forum Excel General
    Replies: 6
    Last Post: 04-24-2015, 06:39 PM
  4. [SOLVED] Count number of consecutive days and instances
    By Cortlyn in forum Excel General
    Replies: 7
    Last Post: 02-06-2015, 06:02 PM
  5. [SOLVED] Count Consecutive Days Based on Unique Number
    By Kimston in forum Excel General
    Replies: 5
    Last Post: 11-23-2014, 04:46 PM
  6. Replies: 2
    Last Post: 07-25-2013, 01:01 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