+ Reply to Thread
Results 1 to 7 of 7

Calculating time-frame (days) between 2 dates excluding weekends/holidays

  1. #1
    Registered User
    Join Date
    05-10-2018
    Location
    Washington DC
    MS-Off Ver
    2016
    Posts
    3

    Calculating time-frame (days) between 2 dates excluding weekends/holidays

    Good Morning,

    I am aware of the NETWORKDAYS function to calculate the amount of workdays between two given dates. However, I have a large data set of dates (received date & ship date at a warehouse) that I am trying to calculate the number of workdays between two dates excluding weekends and holidays. Here is a small data set as an example:

    RECV_DATE SHIP_DATE
    04/13/2018 4/14/18
    04/04/2018 4/16/18
    04/04/2018 4/12/18
    04/04/2018 4/6/18
    04/12/2018 4/13/18
    04/12/2018 4/23/18
    04/12/2018 4/21/18

    Maybe there's a way to apply the NETWORKDAYS function to what I need? Any help would be greatly appreciated.

    Thanks.
    Last edited by Mparrish6001; 05-10-2018 at 09:01 AM.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Calculating time-frame (days) between 2 dates excluding weekends/holidays

    You can use NETWORKDAYS.INTL this has an extra argument where you can set the weekenddays

    Edit: this formula is especialy usefull when the weekend is not on the excel default saterday, sunday
    Last edited by Roel Jongman; 05-10-2018 at 09:07 AM.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Calculating time-frame (days) between 2 dates excluding weekends/holidays

    Hello and welcome to the forum. Yes, the NETWORKDAYS function counts the number of workdays between two dates excluding weekends and holidays.

    Assuming that your dates are in column A and B and a list of holidays are in cells G2:G10, you can use something like this:

    =NETWORKDAYS(A2,B2,G$2:G$10)
    Drag the formula down

    Note that the result includes the start and end dates as long as they are not on a weekend or holiday.

    See here for more info on the NETWORKDAYS function.

  4. #4
    Registered User
    Join Date
    05-10-2018
    Location
    Washington DC
    MS-Off Ver
    2016
    Posts
    3

    Re: Calculating time-frame (days) between 2 dates excluding weekends/holidays

    Thank you 63falcondude, that helped! The values that I'm getting are counting the RECV_DATE, for example, if the RECV_DATE is 4/5/18 and the SHIP_DATE is 4/7/18, it is showing the value as 3 days instead of 2... is there a way to make a command in the formula to subtract a day? The time between those two days should be showing 2, in my opinion, and not 3.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Calculating time-frame (days) between 2 dates excluding weekends/holidays

    Sure, that would be as simple as this:

    =NETWORKDAYS(A2,B2,G$2:G$10)-1

  6. #6
    Registered User
    Join Date
    05-10-2018
    Location
    Washington DC
    MS-Off Ver
    2016
    Posts
    3

    Re: Calculating time-frame (days) between 2 dates excluding weekends/holidays

    You are the man!! Thank you so much.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Calculating time-frame (days) between 2 dates excluding weekends/holidays

    You're very welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Replies: 5
    Last Post: 08-24-2015, 09:28 PM
  2. [SOLVED] Calculating handling times between two dates, in hours, excluding holidays/weekends
    By Tunesmith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2015, 01:44 PM
  3. Replies: 0
    Last Post: 10-31-2014, 10:32 AM
  4. [SOLVED] Calculating business hour between two days excluding holidays and weekends
    By christophertpj in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-13-2014, 09:00 AM
  5. Add X Days To Dates, Excluding Weekends and Holidays
    By sianjialin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2014, 11:46 PM
  6. Replies: 7
    Last Post: 06-19-2013, 05:45 AM
  7. [SOLVED] Calulating Time Between Two Dates/Times but Excluding Weekends and Holidays
    By randers1984 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2013, 10:24 AM

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