+ Reply to Thread
Results 1 to 13 of 13

Formula to Account for Weekend Days for an SLA

  1. #1
    Registered User
    Join Date
    05-15-2020
    Location
    North America
    MS-Off Ver
    Office365 (v2209)
    Posts
    35

    Formula to Account for Weekend Days for an SLA

    Hi, I need some help trying to figure out the best way to calculate the weekend days for a service level agreement. It's for a radiology center. The center has an SLA with radiologists to interpret images within 1 business day from the date the images are uploaded to the radiology system. Many of these radiologists work on the weekends. Sometimes they will get images uploaded on a Friday and will interpret on the weekend. Or, images uploaded on Saturday or Sunday and interpreted on Monday or Tuesday. An image uploaded on a Friday or Saturday but interpreted on a Monday is still 1 business day. Then there are federal holidays to take into account but I can put that aside if it's too complicated. I need a formula that will subtract the days of the weekend but I'm not sure how to go about it. I attached an example of the spreadsheet and would appreciate some input.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-31-2013
    Location
    Essex UK
    MS-Off Ver
    MS365 v2501
    Posts
    57

    Re: Formula to Account for Weekend Days for an SLA

    Try using the networkdays formula =NETWORKDAYS(start_date,end_date,[holiday])


    Start_date, end_date: the date range that you want to count workdays from.

    Holiday: optional, the cell range that contains the holiday dates that you want to count days excluding.

    Hope that helps.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,100

    Re: Formula to Account for Weekend Days for an SLA

    how about using
    =NETWORKDAYS(A2,B2)
    you can also add holidays
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    05-15-2020
    Location
    North America
    MS-Off Ver
    Office365 (v2209)
    Posts
    35

    Re: Formula to Account for Weekend Days for an SLA

    Thanks! I didn't even know that function existed. Handles holidays too!

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,100

    Re: Formula to Account for Weekend Days for an SLA

    you are welcome

  6. #6
    Registered User
    Join Date
    05-15-2020
    Location
    North America
    MS-Off Ver
    Office365 (v2209)
    Posts
    35

    Re: Formula to Account for Weekend Days for an SLA

    This formula produces some odd results. Look at these cases:

    Upload Interp UpDoW IntDoW Days
    5/24/2024 5/27/2024 Friday Monday 1
    5/24/2024 5/27/2024 Friday Monday 1
    1/12/2024 1/15/2024 Friday Monday 1
    5/24/2024 5/27/2024 Friday Monday 1
    11/8/2024 11/11/2024 Friday Monday 1
    2/10/2023 2/13/2023 Friday Monday 2
    8/11/2023 8/14/2023 Friday Monday 2
    8/18/2023 8/21/2023 Friday Monday 2
    9/22/2023 9/25/2023 Friday Monday 2

    These are all cases where images are uploaded on a Friday and interpreted on a Monday.
    This would be equivalent to interpreting on the same day or at worse, 1 day.
    So we'd need to subtract the weekend. But why does it return a 2 for some?

  7. #7
    Registered User
    Join Date
    12-31-2013
    Location
    Essex UK
    MS-Off Ver
    MS365 v2501
    Posts
    57

    Re: Formula to Account for Weekend Days for an SLA

    I have just tested the formula using the sample spreadsheet you uploaded and all calculations for a Friday to Monday situation showed 2 which is as you'd expect i.e. two working days from the Friday to the following Monday. I cannot replicate the example you give where you got a Friday to Monday being 1 - perhaps upload the 'problem' spreadsheet (or appropriate part) for us to review.

    In the above you show 2023 dates but all dates in the example were 2024 so I'm guessing you are testing on a different sheet.
    Last edited by krackers; 02-25-2025 at 01:16 PM.

  8. #8
    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,369

    Re: Formula to Account for Weekend Days for an SLA

    Upload a sample workbook showing the problem.
    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.

  9. #9
    Registered User
    Join Date
    05-15-2020
    Location
    North America
    MS-Off Ver
    Office365 (v2209)
    Posts
    35

    Re: Formula to Account for Weekend Days for an SLA

    Have a look at the V2 file I uploaded. It's got all the deidentified data. It's filtered to show upload days = Friday and Interp days = Monday, Tuesday or Wednesday.

    What's the difference between ID 632 and 633? Both were uploaded on a Friday and interpreted on the Monday. Yet 632 says it's 1 workday and 633 says it's 2.

    Images that get uploaded on a Friday and interpreted on Saturday or Sunday should be considered "same day" or 1 workday. Images uploaded on a weekend and interpreted on Monday should be considered same day or 1 workday, Tuesday would be 2 workday and Wednesday would be 3 workdays.

    Does my logic make sense?
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    05-15-2020
    Location
    North America
    MS-Off Ver
    Office365 (v2209)
    Posts
    35

    Re: Formula to Account for Weekend Days for an SLA

    Just did. It has all the de-identified data.

  11. #11
    Registered User
    Join Date
    12-31-2013
    Location
    Essex UK
    MS-Off Ver
    MS365 v2501
    Posts
    57

    Re: Formula to Account for Weekend Days for an SLA

    Where you are getting '1', the formula is taking off an additional day because you have set one of those days as a holiday.

  12. #12
    Registered User
    Join Date
    05-15-2020
    Location
    North America
    MS-Off Ver
    Office365 (v2209)
    Posts
    35

    Re: Formula to Account for Weekend Days for an SLA

    OK but If I want to make Friday-Monday 1 day, should I just subtract 1 day?

  13. #13
    Registered User
    Join Date
    12-31-2013
    Location
    Essex UK
    MS-Off Ver
    MS365 v2501
    Posts
    57

    Re: Formula to Account for Weekend Days for an SLA

    yes as simple as that (=NETWORKDAYS(start_date,end_date,[holiday])-1). If you apply that to the whole column it will take one day off each of the calculations. So Monday to Friday will become 4 working days (assuming no holidays also being taken off!) The formulas includes both the start and end days in its calculation. You can explore =NETWORKDAYS.INTL() for other options if needed.

+ 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] network days formula not handling cases when start date is weekend
    By FireDept in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2024, 10:30 AM
  2. Replies: 4
    Last Post: 01-13-2023, 07:59 AM
  3. [SOLVED] Formula to add days with holiday & weekend
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2019, 04:29 AM
  4. [SOLVED] Formula to count the days between the ranges exclude weekend
    By roven.aravind in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2018, 04:04 AM
  5. Formula to Remove Weekend Days
    By Tom in forum Excel General
    Replies: 1
    Last Post: 05-24-2006, 11:35 AM
  6. Excel running date formula minus weekend days
    By Eliane in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2005, 06:06 PM

Tags for this Thread

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