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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,109
Messages
6,128,875
Members
449,476
Latest member
pranjal9

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