+ Reply to Thread
Results 1 to 4 of 4

Calculating difference between working days?

  1. #1
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Calculating difference between working days?

    Hi

    Im looking for a function to calculate the difference between two dates, which excludes Saturday & Sunday.

    Can anyone help?

    Thanks

    McCrimmon
    McCrimmon

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    You need the NETWORKDAYS function, but you will need to load the Analysis Tool Pak for this one

    =NETWORKDAYS(StartDate,EndDate,Holidays)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    01-05-2004
    Location
    Helsinki, Finland
    Posts
    100
    Or like this with "traditional" functions:

    =B2-A2-2*INT((B2-A2+WEEKDAY(A2,3))/7)-MAX(0,WEEKDAY(B2,3)-4)

    A2 = start date, B2 = end date.

    - Asser

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Networkdays counts both the start and end date so if start is today (Thursday) and end is tomorrow (Friday) it'll give 2. Assuming that A2 and B2 are both weekdays Jazzer's formula will give 1 less, i.e. for my example above the result would be 1.

    You can do that also with this formula

    =B2-A2-SUM(INT((WEEKDAY(A2-{1,7})+B2-A2)/7))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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