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

[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]Level (A)[/TD]
[TD]Score (B)[/TD]
[TD]Results (C)[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]153[/TD]
[TD]ON[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]120[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD][/TD]
[TD]RN[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]145[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]155[/TD]
[TD]ON[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]153[/TD]
[TD]ON[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]167[/TD]
[TD]ON[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]RN[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]165[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]179[/TD]
[TD]ON[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]166[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]195[/TD]
[TD]ON[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thank you for any help you can provide
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,223,983
Messages
6,175,777
Members
452,668
Latest member
mrider123

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