IF statement with multiple "layers"

dexnmav

New Member
Joined
Jan 29, 2014
Messages
7
Hi, this is my first post, so hopefully I'm asking everything correctly.

I'd like the result column to be either P, R, or SCO based on the wrong and errors columns.

I'd like to know:
IF wrong =< 15 AND errors=0, then result is P
AND
IF wrong =<10 AND errors=1, then result is SCO
AND
IF wrong >15 OR errors >1, then result is R

WrongErrorsResult (P/SCO/R)
60
121
41
52

<tbody>
</tbody>

I've tried several different formulas just to get the first part of the equation to work so I can have a base to complete the rest, but something isn't working right for me.

Thanks in advance for your help! I greatly appreciate it!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
My mistake, got one sign wrong =) its like this:
=IF(AND(A2<=15, B2=0), "P",IF(AND(A2<=10, B2=1), "SCO", IF(OR(A2>15, B2>1), "R", "OTHER")))

I figured it out! Thank you for your help. The problem was with the "wrong" column. The person that created the spreadsheet didn't have a formula in that column that worked with the numbers I was inputting; they were using literal percentages, so .019 instead of 2. Once I changed their formula and used yours, viola!
 
Upvote 0

Forum statistics

Threads
1,215,886
Messages
6,127,578
Members
449,385
Latest member
KMGLarson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top