+ Reply to Thread
Results 1 to 2 of 2

Exclude weekends from date difference

  1. #1
    Registered User
    Join Date
    05-22-2008
    Posts
    19

    Exclude weekends from date difference

    Hi all
    This is my second post for the same query. I wanted to calculate the difference between dates, excluding the weekends. Please see my thread 'Calculate difference between dates excluding weekends'. After much discussion, daddylonglegs suggested a brilliant formula =NETWORKDAYS(A1,B1)+IF(NETWORKDAYS(A1,A1)+ NETWORKDAYS(B1,B1)=2,-SIGN(NETWORKDAYS(A1,B1)),0) that seemed to be working fine. However, I had a problem today with this formula when my start day was saturday (24/05/08) and the last day was monday (26/05/08). What i want is that when i take the difference between these two days, i should get zero as answer as we are not including the weekends in calculation so the start date should ideally be the first weekday which is Monday. However, the formula is giving me 1 as an answer.
    This formula works fine if i select 27/05/08 as last date in which case i get 2 as an answer which is right. In gist, what i am looking for is a formula which will give me the difference between two dates and exclude the weekends from the calculation. The last date can't be a weekend, but the start date can. Hence, whenever the start date is a weekend, the formula should take monday as a start day.
    Many many thanks in advance
    Cheers
    Nitin

  2. #2
    Registered User
    Join Date
    05-22-2008
    Posts
    19
    Actually, it should be 1 day if the last date is 27/05/08 and not 2 days

+ 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 between creation date and end date
    By lparajuli in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2008, 08:18 PM
  2. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM
  3. Date Difference Formula
    By henrythompson in forum Excel General
    Replies: 3
    Last Post: 09-13-2007, 04:56 AM
  4. Difference between todays date and a future date minus the weekends?!
    By kastle1982 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2006, 05:21 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