Help with an If-And Formula

herpasymplex10

Board Regular
Joined
May 26, 2005
Messages
224
here is the formula as is:

=IF(AND(C13="yes",B4<=5),"Over $250 or 5 Cartons","")


So if the value in B4 is less than or equal to 5 = True

I want to change it to
be if value is less than or equal to 5 or 7 or 8 = True


I can't seem to get it.
Help?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Add an OR() function

=IF(AND(C13="yes",OR(B4<=5,B4<=7,B4<=8)),"Over $250 or 5 Cartons","")


although I am not sure that is really what you need....can't you just have AND(B4<>6,B4<=8)?
 

Forum statistics

Threads
1,137,198
Messages
5,680,114
Members
419,881
Latest member
Rubber Soul

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
Top