If Statement Question

sobeleg

New Member
Joined
Jun 29, 2011
Messages
40
I am trying to create an if statement that automatically says yes or no depending on if the five boxes are within a valid range for certain cases. If any of those boxes are not in that range for each of five specific cases, it will say no.

Basically:

IF A1 = Case 1 and B 2, 3, 4, 5, and 6 are within a certain range (less than an upper limit), then B7 = "Yes", and so on for five cases.

Any help would be greatly appreciated, Thanks!
 
Can someone please help me finish this up?

IF(AND(B10="Shipper", F20<=64,F21<=24,F22<=20,F24<=50),"yes","No")

I have this part of the statement, I just need to extend it to have 5 options for values for B10, and different guidlines (F cells) based on what B10 says.

Thank you.
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I'm sure there must be better ways, but you could use nested if statements like:

If(And(),"Yes",If(And(),"Yes",If(And(),"Yes",If(And(),"Yes",If(And(),Yes","No")))))

where you'd substitute actual tests for each of the And() statement above, that is, you'd use your actual tests like are in your example:

AND(B10="Shipper", F20<=64,F21<=24,F22<=20,F24<=50)

Basically, you're just putting another if statement where the "No" goes until you get to the innermost if statement, where you actually put the "No" result. Excel evaluates the outer If() statement first, and if true, gives you a "Yes" response. If false, it the evaluates the second inner If() statement, and so on, until get a true response or if all the statements are false, it will return a "No" from the innermost If() statement.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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