+ Reply to Thread
Results 1 to 3 of 3

Number of days between two dates

  1. #1
    Registered User
    Join Date
    04-17-2009
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question Number of days between two dates

    I have used a formula to calculate the number of days between two dates but it gives me a negative value on the number of days.

    =IF(J1235="","",NETWORKDAYS(K1235, O1235,'Dates and Times'!$A$7:$A$19) - 1) this is the formula I used.

    Can someone help me, on other dates it works but on others it doesn't.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Number of days between two dates

    Without seeing your data values it's hard to comment... you will get a -ve result if the number of working days (excl. holidays) between two dates is <=0, this could be for a number of reasons... eg. O date precedes the K date, the number of holidays & weekdays between O & K date matches the number of days etc etc...

    You may be able to think of using a MAX function but to reiterate we need to understand your O & K values and also the Public Holiday listed values.
    Last edited by DonkeyOte; 04-17-2009 at 02:20 AM. Reason: missing operator

  3. #3
    huston1679
    Guest

    Re: Number of days between two dates

    hi there

    i hope this example will help

    01/04/2009 25/12/2008
    25/04/2009 27/01/2009

    18 24
    NETWORKDAYS(A2,A3) NETWORKDAYS(c2,c3)

+ 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