+ Reply to Thread
Results 1 to 8 of 8

Need help with formula to calculate workdays

  1. #1
    Registered User
    Join Date
    09-22-2017
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    10

    Need help with formula to calculate workdays

    Hello,

    I need help with a formula : ). I have the following formula in cell BI3:

    =IF(AND(A3<>"",AN3<>""),A3-AN3,"")

    where both A3 and AN3:

    - are formatted as dates;
    - are always workdays (Mon-Fri).

    I need to know how to modify this formula so that upon subtraction of A3 and AN3 I would receive in BI3 the number of workdays between the dates A3 and AN3 instead of the number of calendar days.

    Many thanks in advance!

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

    Re: Need help with formula to calculate workdays

    Try using NETWORKDAYS.

    Assuming that your start date is in AN3 and your end date is in A3, try this:

    =IF(AND(A3<>"",AN3<>""),NETWORKDAYS(AN3,A3),"")

  3. #3
    Registered User
    Join Date
    09-22-2017
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    10

    Re: Need help with formula to calculate workdays

    Thanks for the quick reply . Your assumption is correct but no, this doesn't seem to work. I set AN3 to October 18, 2017 and A3 to October 19, 2017. With my formula, I'd get "1" in BI3 and with your formula I'd get "2".

    Any other suggestions?

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

    Re: Need help with formula to calculate workdays

    NETWORKDAYS counts both the start and end dates as days.

    Simply subtract 1 from the result. That is:

    =IF(AND(A3<>"",AN3<>""),NETWORKDAYS(AN3,A3)-1,"")

  5. #5
    Registered User
    Join Date
    09-22-2017
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    10

    Re: Need help with formula to calculate workdays

    You solved it falcondude And I just learnt something new Thank you very much!

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

    Re: Need help with formula to calculate workdays

    You're very welcome. Thanks for the rep!

    If that solved your question, please mark this thread as SOLVED.

  7. #7
    Registered User
    Join Date
    09-22-2017
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    10

    Re: Need help with formula to calculate workdays

    How do I set this to thread to SOLVED falcondude?

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

    Re: Need help with formula to calculate workdays

    To mark a thread as SOLVED, 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. [SOLVED] Formula to Calculate Workdays Elapsed
    By kschmit1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-03-2017, 01:53 PM
  2. Replies: 3
    Last Post: 12-30-2015, 09:25 AM
  3. Calculate workdays between two days
    By whatever61 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2015, 08:40 PM
  4. [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
  5. [SOLVED] Calculate end of month less n workdays
    By BRISBANEBOB in forum Excel General
    Replies: 4
    Last Post: 06-26-2014, 02:37 AM
  6. [SOLVED] How to calculate workdays
    By mnur in forum Excel General
    Replies: 4
    Last Post: 10-08-2013, 09:55 AM
  7. [SOLVED] Calculate Workdays
    By mycon73 in forum Excel General
    Replies: 11
    Last Post: 12-28-2012, 01:38 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