+ Reply to Thread
Results 1 to 6 of 6

Calculate Date Difference but Business Days Only

  1. #1
    Registered User
    Join Date
    12-09-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    MS Office 2010
    Posts
    19

    Calculate Date Difference but Business Days Only

    Hi All,

    I am trying to calculate the days between two dates, but only counting business days (Monday to Friday, holidays not counted if possible)

    For ex.) A file has a Due Date of 3/21/16 (Monday) and Date Arrival is 3/23/16. I want to see that this file was late by 2 days (or show a -2) . If the file came on 3/21/16, then it came on the same day so I would like to see a 0.

    In addition, if the file has a due date of 3/25/16 (Friday) and Date Arrival is 3/23/16, then I want to see that it arrived early by 2 days (or show a +2)

    I tried using NetworkDays in my formulas, but it would only work if the file was late or early but can't calculate properly for both.

    Any ideas you guys might have would be appreciated!

    Thanks,

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,361

    Re: Calculate Date Difference but Business Days Only

    Try

    =(NETWORKDAYS.INTL(A2,B2,1))+IF(SIGN(A2-B2),SIGN(A2-B2),-1)

    A2=Due Date
    B2=Arrival Date

    ..... without Holidays
    Last edited by JohnTopley; 03-25-2016 at 10:38 AM.

  3. #3
    Registered User
    Join Date
    12-09-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    MS Office 2010
    Posts
    19

    Re: Calculate Date Difference but Business Days Only

    it almost worked but it gave me the opposite, if it was 1 day early, I would like to see "1" and if it was 1 day late, I would like to see "-1"

    Thank you!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,361

    Re: Calculate Date Difference but Business Days Only

    Try

    =((NETWORKDAYS.INTL(A4,B4,1))+IF(SIGN(A4-B4),SIGN(A4-B4),-1))*-1

  5. #5
    Registered User
    Join Date
    12-09-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    MS Office 2010
    Posts
    19

    Re: Calculate Date Difference but Business Days Only

    the formula is not going through with the *-1 at the end of it.. I am getting the prompt "we found a problem with this formula..."

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,361

    Re: Calculate Date Difference but Business Days Only

    Works OK for me: Did you Copy/Paste from the thread? Check brackets.
    Last edited by JohnTopley; 03-25-2016 at 12:55 PM.

+ 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] How to calculate the next 60 business days
    By sundaylittle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2015, 08:00 PM
  2. Replies: 4
    Last Post: 05-19-2014, 04:28 PM
  3. Calculate business days
    By vgrandja in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-15-2013, 10:40 AM
  4. Replies: 1
    Last Post: 09-13-2012, 05:50 AM
  5. Replies: 0
    Last Post: 09-13-2012, 05:28 AM
  6. calculate Business Days
    By wambaugh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2011, 10:43 AM
  7. calculate business days(where there is 6 days a week)
    By arnab0711 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2011, 10:09 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