+ Reply to Thread
Results 1 to 3 of 3

Negative value while calculating days between two dates

  1. #1
    Forum Contributor
    Join Date
    10-02-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    165

    Negative value while calculating days between two dates

    Hi All,

    In the attached sheet, I want to calculate the no of days between two dates. It is working fine when both date are present but showing negative value
    if only one date value in present in column. How to rectify it.

    Also I am entering one more formula for If conditon in 4th column which is not working fine. Could you please help me.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,792

    Re: Negative value while calculating days between two dates

    Maybe this in C2:

    =IF(OR(A2="",B2=""),"",B2-A2)

    and this in D2:

    =IF(C2="","",IF(C2 <=0, "on time", "Delayed"))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,792

    Re: Negative value while calculating days between two dates

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 0
    Last Post: 10-31-2014, 10:32 AM
  2. Replies: 2
    Last Post: 02-20-2014, 06:40 AM
  3. Calculating No of Days between Dates
    By bankcott in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2013, 11:19 AM
  4. Calculating Eligibility Dates & Hiding negative Dates
    By Dooger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2012, 04:01 PM
  5. calculating the # of days btwn 2 dates INCLUDING the dates
    By jfarlow in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2008, 12:27 PM
  6. Replies: 5
    Last Post: 10-26-2005, 02:05 PM
  7. Replies: 0
    Last Post: 08-23-2005, 11:52 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