+ Reply to Thread
Results 1 to 11 of 11

Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days Stra

  1. #1
    Registered User
    Join Date
    04-09-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Standard 2013
    Posts
    82

    Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days Stra

    Hi All,

    Seeking Assistance on this Please.


    On Cell P3 i wanted to display a text like "6 Days" or "7 Days" else "5 Days" (This would be a nested if I Think

    I have a schedule that looks Like this: (The name of the employee would be on Cell B2)

    Cell H2 would be Sunday (This would be the Current Week)

    SUN MON TUE WED THU FRI SAT
    09:00-18:00 09:00-18:00 09:00-18:00 09:00-18:00 OFF OFF 09:00-18:00
    09:00-18:00 09:00-18:00 09:00-18:00 09:00-18:00 OFF OFF 09:00-18:00
    08:00-17:00 08:00-17:00 08:00-17:00 08:00-17:00 OFF OFF 08:00-17:00


    In the table below SUN would be Cell AH2 so on and so forth (This would be employees previous week schedule)
    SUN MON TUE WED THU FRI SAT
    11:00-20:00 11:00-20:00 11:00-20:00 11:00-20:00 OFF OFF 11:00-20:00
    11:00-20:00 11:00-20:00 11:00-20:00 11:00-20:00 OFF OFF 11:00-20:00
    10:00-19:00 10:00-19:00 10:00-19:00 10:00-19:00 OFF OFF 10:00-19:00

    P.S. Attached is a sample excel File (Reposted the File Apologies on the Miss)
    Attached Files Attached Files
    Last edited by dlealb; 10-19-2019 at 06:06 AM.

  2. #2
    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,540

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    You have not provided any expected results. Please add these manually to the cells in question and post again.
    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.

  3. #3
    Registered User
    Join Date
    04-09-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Standard 2013
    Posts
    82

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    Hi Ali,

    Apologies on the Miss
    We have re-posted the File

    We appreciate the assistance
    Last edited by AliGW; 10-19-2019 at 06:08 AM. Reason: Please don't quote unnecessarily!

  4. #4
    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,540

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    OK - so now you need to EXPLAIN your expected results! We are good, but we are not mind-readers (you might wish to take this into account in your other thread, too).

  5. #5
    Registered User
    Join Date
    04-09-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Standard 2013
    Posts
    82

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    Right

    So Basically what all this about is just a checker if the employee will be on a 6 day straight schedule for next week vs his/her current schedule or a 7 day sched or just a regular 5 day sched
    This way we can adjust an employee's schedule and provide him a transition off as we fit or whatnot in case he/she will be on a 6 or a 7 day straight schedule.
    Last edited by AliGW; 10-19-2019 at 06:15 AM. Reason: Please don't quote unnecessarily!

  6. #6
    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,540

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    Yes, that bit is obvious! However, we need to know if the weeks are always defined in the same way - does the count always start with Saturday of the current week?

  7. #7
    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,540

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    This may be what you want:

    =7-COUNTIF(H3:M3,"OFF")+COUNTIF(AN3,"OFF")&" days"

  8. #8
    Registered User
    Join Date
    04-09-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Standard 2013
    Posts
    82

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    In our Office our day starts on a Sunday so the Count starts on Sundays. The weeks are indeed defined as it is based on the attached File.
    Every Friday we consolidate what other managers send over to our department and send it to our reporting team and we are the ones tasked to double check what our partner sites have provided us and if we find that the agent will be on a straight 6 or 7 days schedule we then adjust the agents schedule as we see fit.
    Last edited by AliGW; 10-19-2019 at 06:22 AM. Reason: Please don't quote unnecessarily!

  9. #9
    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,540

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    Did you try my suggestion in post #7?

    Administrative Note:

    I have now edited your last three posts and left edit notes. Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  10. #10
    Registered User
    Join Date
    04-09-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Standard 2013
    Posts
    82

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    Right QUICK REPLY

    Your suggestion did the Trick madam
    We appreciate the assistance this would save us a lot of time checking stuff manually

  11. #11
    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,540

    Re: Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days

    No problem!

+ 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. [SOLVED] formula to write the dates of rest days for every employee in one cell
    By leprince2007 in forum Excel Formulas & Functions
    Replies: 41
    Last Post: 01-14-2018, 06:14 PM
  2. [SOLVED] Unable to count the number of days worked by each employee using pivot!
    By EricKamei in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 08-03-2014, 02:23 PM
  3. Help with Sum Function for Total Paid Hrs for Employee Sched
    By ZOECLEARWATER in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2014, 02:41 AM
  4. Employee Time Tracking - Sick days & Consecutive Days
    By notaguru6 in forum Excel General
    Replies: 6
    Last Post: 08-09-2013, 12:50 PM
  5. Replies: 0
    Last Post: 01-10-2013, 07:08 PM
  6. Replies: 4
    Last Post: 01-04-2013, 02:21 PM
  7. Count how many days in a row an employee is working
    By Jkoury in forum Excel General
    Replies: 2
    Last Post: 01-26-2012, 08:25 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