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!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try this formula in B7, I've used 10 as your upper limit, change for what you need.

=IF(AND(A1=1, B1+B2+B3+B4+B5+B6<10),"yes","No")
 
Upvote 0
Try this formula in B7, I've used 10 as your upper limit, change for what you need.

=IF(AND(A1=1, B1+B2+B3+B4+B5+B6<10),"yes","No")


Thanks, the only issue here is that each of the B values have different specific upper limits. These upper limits are different for each of the five cases.
 
Upvote 0
Sorry - read the question wrong - again I have the limits as 10

=IF(AND(A1=1, B1<10,B2<10,B3<10,B4<10,B5<10,B6<10),"yes","No")
 
Upvote 0
Thank you, to make this apply for all cases would I just continue like this:

=IF(AND(A1=1, B1<10,B2<10,B3<10,B4<10,B5<10,B6<10),"yes","No"), AND(A1=2, B1<10,B2<10,B3<10,B4<10,B5<10,B6<10),"yes","No").....
 
Upvote 0
Ahhh, now we get the rest of the story.
Are these 5 different questions that you need 5 different answers for? And what version of Excel are you using?
 
Upvote 0
Basically I need the box to say whether certain information is valid. Each of the five cases, the guidelines are different.

I am using Excel 2007
 
Upvote 0
Basically I need the box to say whether certain information is valid. Each of the five cases, the guidelines are different.

I am using Excel 2007

To clarify even further, Each case (A1 in my example) is listed in a drop down box.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,707
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