# Help with an If-And Formula

#### herpasymplex10

##### Board Regular
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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

=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)?

thanks a lot
that gave me what i needed

Replies
12
Views
243
Replies
12
Views
288
Replies
3
Views
229
Replies
2
Views
751
Replies
9
Views
328

1,216,485
Messages
6,130,938
Members
449,608
Latest member
jacobmudombe

### 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.

### Which adblocker are you using?

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

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