1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Nested IF Function Help Excel - Please :)

Discussion in 'Business Applications' started by Smileyriley81, Jan 29, 2013.

Thread Status:
Not open for further replies.
  1. Smileyriley81

    Smileyriley81 Thread Starter

    Joined:
    Jan 29, 2013
    Messages:
    2
    Dear All,

    I have written a nested IF statement in Excel 2010 that is not working quite how I'd like it to. I am wondering if anyoone can help?

    [​IMG]

    SEV and OCC are whole integers between 1 and 10.

    In the CLASS column: "CC" should return when SEV>= 8;
    "SC" should return when 7>=SEV>=5 AND 10>=OCC>=4;
    anything else should return nothing

    I have managed to create the return situations "CC" and "SC" in rows 2 & 3 (in the picture above), with the following formula:

    A2:
    =IF(B2>=8,"CC",(IF(AND(7>=B2>=5,10>=C2>=4),"SC",(IF(OR(B2<5,C2<4),"")))))

    The bold blue part of the formula was meant to cover the return situation of rows 4, 5 and 6. But instead of returning nothing, it's returning "SC". Can anyone suggest the changes I need to make?
     
  2. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    65,252
    First Name:
    Wayne
    This should work
    =IF(B2>=8,"CC",IF(AND(B2<=7,B2>=5,C2<=10,C2>=4),"SC",""))
     

    Attached Files:

  3. Smileyriley81

    Smileyriley81 Thread Starter

    Joined:
    Jan 29, 2013
    Messages:
    2
    ETAF!

    That was super super quick. And thank you, it works perfectly :)))
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1087365

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice