Excel IF THEN Statement-complex

kcompton

Board Regular
Joined
Mar 16, 2009
Messages
209
Hello I am trying to write a formula for the following table example that would return result options in Column C depending on the data entered in columns A and B:

IF A1=0 and B1>=133, then C1=ON if B1<133, then C1=NO;
IF A1=1 and B1>=153, then C1=ON if B1<153, then C1=NO;
If A1=2 and B1>=166, then C1=ON if B1<166, then C1=NO;
IF A1=3 and B1>=179, then C1=ON if B1<179, then C1=NO;
IF A1 is Blank, then C1= RN
(then the formula would be copied down to C2, C3, etc

Level (A)Score (B)Results (C)
0153ON
0120NO
0RN
1145NO
1155ON
1153ON
2167ON
2RN
2165NO
3179ON
3166NO
3195ON

<tbody>
</tbody>

Thank you for any help you can provide
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Give this formula a try...

=IF(B1="","RN",IF(B1>=CHOOSE(A1+1,133,153,166,179),"ON","NO") )
 
Upvote 0

Forum statistics

Threads
1,216,759
Messages
6,132,556
Members
449,735
Latest member
Gary_M

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