+ Reply to Thread
Results 1 to 7 of 7

I am having an issue with an IF formula that contains 4 nested arguments....

  1. #1
    Registered User
    Join Date
    04-21-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    4

    I am having an issue with an IF formula that contains 4 nested arguments....

    Hello everyone....
    Nub here to the forums that has an average amount of experience with Excel(Read dangerous....). I have a spreadsheet that contains the following =IF formula......

    =IF(C24<750,"Class C", IF(C24<900,"Class B", IF(C24<1200,"Class A",IF(C24>1199,"Class AA"))))

    Everything works great with the formula, but I am trying to add a criteria to this part of the argument... IF(C24>1199,"Class AA". As it stands, each nest is evaluating one particular cell within the sheet. For the 4th argument, I want it to only return the value "Class AA" if another cell C11 also meets a criteria. For example, here is what I tried adding...... IF(C24>1199&C11>=1300,"Class AA" . My hope was that any value in C24 above a 900 would return "Class A", unless it was 1200 or greater AND C11 was 1300 or greater. If those two criteria were met, then it would return "Class AA". Here are a couple of more examples of what I am trying to obtain.....

    C24=925/C11=1100. Returns "Class A"
    C24=1200/C11=1550. Returns "Class AA"
    C24=1300/C11=1200. Returns "Class A"

    I appreciate any help or suggestions! Thanks everyone for your time.....

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I am having an issue with an IF formula that contains 4 nested arguments....

    Use an AND function like this:

    IF(AND(C24>1199,C11>=1300),"Class AA","")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: I am having an issue with an IF formula that contains 4 nested arguments....

    try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for your first example
    for the added examples, maybe something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I don't think I missed any ')', but I may have, so insure that they close each section if you get errors trying to enter it

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Registered User
    Join Date
    04-21-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: I am having an issue with an IF formula that contains 4 nested arguments....

    Hello Dred and Tony...
    Thank you both for your replies. Both solutions worked with one exception. If C11 contained a value that would normally trigger a "Class AA" but C24 didn't; the formula correctly returned a "Class A" result. If you flip-flop the result, whereas C24 contained the value that would normally trigger the "Class AA" result but C11 didn't; the result is a blank cell. The result should be a "Class A" result. Any suggestions?? Here again is the formula.......

    =IF(C24<750,"Class C", IF(C24<900,"Class B", IF(C24<1200,"Class A",IF(AND(C24>1199,C11>1300),"Class AA",""))))

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I am having an issue with an IF formula that contains 4 nested arguments....

    Just replace the blanks "" with "Class A".

    =IF(C24<750,"Class C",IF(C24<900,"Class B",IF(C24<1200,"Class A",IF(AND(C24>1199,C11>1300),"Class AA","Class A"))))

  6. #6
    Registered User
    Join Date
    04-21-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: I am having an issue with an IF formula that contains 4 nested arguments....

    Tony that did it! Thanks again for your help. You too Dred!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I am having an issue with an IF formula that contains 4 nested arguments....

    You're welcome. Thanks for the feedback!

+ 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