+ Reply to Thread
Results 1 to 4 of 4

Avoid negative dates using iferror

  1. #1
    Registered User
    Join Date
    12-04-2008
    Location
    Birmingham, UK
    MS-Off Ver
    Office 2007
    Posts
    43

    Avoid negative dates using iferror

    I have attached a simple example worksheet showing what I am trying to do.

    I have a contract start date, a contract finish date, a notice period and a standard review period. To get a date when I should start my contract review I do the following:

    (finish date-notice period)- review period.

    This is fine when the finish date is populated but if it isn't it results in a negative number.

    What I want to achieve is if there is not a finish date then leave the review date cell blank.

    Thanks in advance
    Attached Files Attached Files
    Last edited by dcaraher; 11-18-2009 at 12:04 PM.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Avoid negative dates using iferror

    iseeror
    From your code.
    That might be part of the problem
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

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

    Re: Avoid negative dates using iferror

    Perhaps then

    D2: =IF(SUM(B2),(B2-C2)-$H$2,"")
    copied down

  4. #4
    Registered User
    Join Date
    12-04-2008
    Location
    Birmingham, UK
    MS-Off Ver
    Office 2007
    Posts
    43

    Re: Avoid negative dates using iferror

    Thanks for both your replies.

    DO that worked fine once I had formated the cells to date it worked exactly as I wanted

    Thanks

+ 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