+ Reply to Thread
Results 1 to 4 of 4

Need formula to calculate workdays between dates & subtract 1. If no value, default to 0

  1. #1
    Registered User
    Join Date
    12-29-2015
    Location
    Albany
    MS-Off Ver
    2013
    Posts
    2

    Need formula to calculate workdays between dates & subtract 1. If no value, default to 0

    Let's say A1 is the 'from date' and B1 is the 'to date'. I need a formula in C1 that will provide the number of the work days between A1 and B1 then subtract 1 day. Where there is no value in B1, I would like C1 to default to 0. Any ideas? Thanks in advance!

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

    Re: Need formula to calculate workdays between dates & subtract 1. If no value, default t

    Try

    =IF(B1="",0,NETWORKDAYS(A1,B1,Holidays)-1)

    Where Holidays is an Optional range where you enter holiday dates that should be skipped.

  3. #3
    Registered User
    Join Date
    12-29-2015
    Location
    Albany
    MS-Off Ver
    2013
    Posts
    2
    it works! Thanks Jonmo1!

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

    Re: Need formula to calculate workdays between dates & subtract 1. If no value, default t

    You're welcome.

+ 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 calculate average number workdays in queue
    By mmccra2858 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-28-2014, 07:41 PM
  2. Replies: 3
    Last Post: 11-19-2014, 05:02 AM
  3. [SOLVED] Create Macro to Calculate Workdays Between two Dates
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 05:06 PM
  4. Formula to count workdays between two dates?
    By sportsguy in forum Excel General
    Replies: 4
    Last Post: 10-04-2007, 05:28 PM
  5. Calculate workdays between two dates (including Saturdays, excluding holidays)
    By Sean Anderson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2007, 12:22 AM
  6. Replies: 1
    Last Post: 03-26-2005, 09:41 AM
  7. [SOLVED] How do you calculate number of workdays from dates entered?
    By tfleck in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2005, 06:06 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