Solved: Nested IF Function Help Excel - Please :)

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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?



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?
 

etaf

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

Attachments

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Members online

Top