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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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)?
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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