Closed Thread
Results 1 to 5 of 5

Count consecutive more than 3 days absent in a month/year exclude Sat/Sun/PubHol

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Count consecutive more than 3 days absent in a month/year exclude Sat/Sun/PubHol

    Hi,

    Would like to seek your assistance

    1) In Entry sheet: Teams absent="N": count number of >=3 consecutive days in a year exclude Sat/Sun/PubHol in Column
    2) In AttDashboard sheet: Teams absent="N": count number of >=3 consecutive days in a month exclude Sat/Sun/PubHol by Rows

    Attached is excel sheet for your reference. Can anyone please advise how to go about this.
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: Count consecutive more than 3 days absent in a month/year exclude Sat/Sun/PubHol

    Try below array formula
    =SUM(IF(FREQUENCY(IF(Table1[Team1]="N",ROW(Table1[Team1])),IF(Table1[Team1]="Y",ROW(Table1[Team1])))>=3,1))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Re: Count consecutive more than 3 days absent in a month/year exclude Sat/Sun/PubHol

    Hi,

    The formula is counting as one if there is one consecutive of 3 days. It should start the count after "Y" then check >=3 consecutive days until today's date.
    User prefer to have blanks instead of typing "N" but it should stop the count if it's today's date.

    I have highlighted in yellow the result to show as attached.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Re: Count consecutive more than 3 days absent in a month/year exclude Sat/Sun/PubHol

    Hi,

    I have simplify the request, I only need a number of times count of >= 3 consecutive days after "Y"

    AttDashboard sheet: Teams did not attend (" "): count number times of >=3 consecutive days until today in a month
    Occurances starts after "Y" until today's data.

    I was looking at all the samples but still didn't get an idea on the count. Attached is the worksheet for your preview.

    Would really appreciate your advise. It will be a great help. Thank you.
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,522

    Re: Count consecutive more than 3 days absent in a month/year exclude Sat/Sun/PubHol

    Duplicate thread closed. Continue here: https://www.excelforum.com/excel-for...ml#post4640524

    Do NOT open duplicate threads on the same issue.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] number of consecutive lengths in a month of all year
    By Rohith A N in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-17-2021, 08:16 PM
  2. Count if formula to count absent days
    By salsi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2017, 02:07 AM
  3. [SOLVED] Maximum cumulative value for the consecutive 3 days of data in 1 year period
    By bennyistanto in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-26-2017, 08:43 AM
  4. Replies: 17
    Last Post: 08-03-2015, 06:15 AM
  5. [SOLVED] Count number days absent for different employees with multiple date ranges.
    By monkeypants in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-20-2015, 08:32 PM
  6. find time left in month.days unit between two dates(in YEAR.MONTH.DAY)
    By xcfeng95 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-21-2014, 12:55 PM
  7. [SOLVED] Count for present & absent days
    By Ajit Munj in forum Excel General
    Replies: 8
    Last Post: 10-08-2013, 01:13 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