+ Reply to Thread
Results 1 to 4 of 4

Calculation problem to produce 3 different results from IF

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Calculation problem to produce 3 different results from IF

    I have a column called Receipt date, a column called Task due date

    I have created a column called On time Yes/No. I need to calculate according to the Receipt date and Task due date to see whether the task was completed on time or not, this worked well with:

    =IF(Receipt date>Task due date,"No",IF(Receipt date<Task due date,"Yes"))

    However, if the Receipt date is blank, it defaults to a Yes result - which I do not want. How can I get the column to display something like "NA" if Receipt date is blank?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Calculation problem to produce 3 different results from IF

    Perhaps something like this?

    =IF(Receipt date="","",IF(Receipt date>Task due date,"No",IF(Receipt date<Task due date,"Yes")))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    07-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Calculation problem to produce 3 different results from IF

    Brilliant! Thank you so much that worked, I did something similar but put that first part at the end instead of the beginning - not sure why that would make a difference? Or maybe I missed a smalll thing.

    Great thanks!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Calculation problem to produce 3 different results from IF

    This should be the first condition in you formula!

    So..

    You are welcome and thanks for the feed back.

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

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Produce multiple results after searching a value
    By Stagnant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2013, 06:55 AM
  2. [SOLVED] MIN for different columns of same values produce different results
    By bobboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-29-2013, 11:11 PM
  3. how to count text and produce bar graph from results
    By blake86 in forum Excel General
    Replies: 3
    Last Post: 07-01-2009, 05:11 PM
  4. IF statement does not produce required results
    By nhandal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2009, 12:49 PM
  5. sales tax calculation formula to produce a chart?
    By Carmensita in forum Excel General
    Replies: 4
    Last Post: 05-15-2006, 09:25 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