+ Reply to Thread
Results 1 to 6 of 6

IF Function with Multiple Criteria

  1. #1
    Registered User
    Join Date
    10-14-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    43

    IF Function with Multiple Criteria

    I have this table:

    Math Science Language Overall
    Pass Pass Pass ----
    Pass Fail Pass ----
    Pass Fail Fail ----
    Fail Fail Fail ----

    What formula should I use to show "Pass" if a student passed all three subjects, "FAIL" If student did not pass in any subject and "TRY AGAIN" if he passed at least one subject?

    I can't seem to accurately plot "IF" formula. Should add in "AND" / "OR" as well?

    Thanks in advance!
    Last edited by ltmaiyk; 02-05-2010 at 11:33 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF Function with Multiple Criteria

    =Choose(Countif(B2:D2,"Pass")+1,"Fail","Try Again","Try Again","Pass")

    where B2:D2 contain the scores...

    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: IF Function with Multiple Criteria

    Hi there, I would creat columns next to the results with numbers that corealate to the Pass or Fail, I used 1 for Pass and 0 for Fail with this formula =IF(A8="Pass",1,0). If you think that you may have something else in there instead of Fail you should specify to only return 0 for Fail, otherwise it may skew your results.
    You can then use a nested If for the calculation ie =IF(B8+D8+F8>=3,"Pass",IF(B8+D8+F8=0,"Fail","Try Again"))
    Once it's working you can hide the numbers columns.
    My sheet looks like this:
    Math Science Language Overall
    Pass 1 Pass 1 Pass 1 Pass
    Pass 1 Fail 0 Pass 1 Try Again
    Pass 1 Fail 0 Fail 0 Try Again
    Fail 0 Fail 0 Fail 0 Fail
    It's not particularly elegant but it works!
    HTH
    Nina

  4. #4
    Registered User
    Join Date
    10-14-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: IF Function with Multiple Criteria

    Thanks for the prompt response. The answers you gave will work if I included another column that shows numeric values. As for this problem, no numeric value should be added. Does that even make any sense?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF Function with Multiple Criteria

    The formula I submitted does not require other columns... it counts the number of "Passes" and determines the result based on that count..

  6. #6
    Registered User
    Join Date
    10-14-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: IF Function with Multiple Criteria

    you're right. thanks much

+ 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