+ Reply to Thread
Results 1 to 4 of 4

Calc dates excluding weekends w/blanks

  1. #1
    Registered User
    Join Date
    05-22-2012
    Location
    Calgary Alberta
    MS-Off Ver
    Excel 2010
    Posts
    42

    Calc dates excluding weekends w/blanks

    I hav the following formula....
    =IF(ISBLANK(F2),$U$1-D2,F2-D2)
    Where U1 = TODAY()
    D2 is the date submitted
    F2 is the date returned

    I want to be able to calculate the days between the dates where weekends and holidays are excluded (JUST BUSINESS DAYS)

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calc dates excluding weekends w/blanks

    Try the NETWORKDAYS function

    =NETWORKDAYS(D2,IF(ISBLANK(F2),$U$1,F2),H1:H20)

    H1:H20 is a list of holiday dates you create that should be excluded.


    NOTE, Networkdays is INCLUSIVE. Meaning it counts both the start AND end dates.
    To account for this, either add 1 to the Start Date, or Subtract 1 from the End date, your choice.

    To Exclude the start date
    =NETWORKDAYS(D2+1,IF(ISBLANK(F2),$U$1,F2),H1:H20)

    To Exclude the end date
    =NETWORKDAYS(D2,IF(ISBLANK(F2),$U$1,F2)-1,H1:H20)
    Last edited by Jonmo1; 01-27-2014 at 02:19 PM.

  3. #3
    Registered User
    Join Date
    05-22-2012
    Location
    Calgary Alberta
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Calc dates excluding weekends w/blanks

    Found a slight glitch with the formula.
    If the start date and return date are the same, meaning the turn around was the same day then the formula reports a negative number when it should be either zero or one.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Calc dates excluding weekends w/blanks

    That's a result of 'accounting for' the inclusive nature of networkdays.

    Which do you want, 0 or 1 ?

    We can use the MAX function for this
    =MAX(0or1,NETWORKDAYS(....))

+ 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. difference of two dates excluding weekends
    By crisel_avelino in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2014, 05:41 AM
  2. Time Between Two Dates Excluding weekends
    By RjMaJay in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2012, 09:34 AM
  3. Need help with IF and Dates excluding weekends.
    By tdo4h in forum Excel General
    Replies: 17
    Last Post: 10-19-2012, 07:16 AM
  4. Formula for dates excluding weekends
    By novice2430 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-09-2008, 09:11 PM
  5. Replies: 1
    Last Post: 08-14-2006, 01:55 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