# Nesting "AND" and "OR"

#### Yokiboha

##### Board Regular
I have for columns and am trying to create a formula that will place "X" in the first column if:

2nd column is greater than 11 and the third column is greater than 85(regardless of the value in the fourth column), or the 2nd column is greater than 11 and the forth column is less than 1.5 (regardless of the value in the third column)

Is this possible? I would be very grateful for help.

### Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

#### barry houdini

##### MrExcel MVP
2nd column is greater than 11 and the third column is greater than 85(regardless of the value in the fourth column), or the 2nd column is greater than 11 and the forth column is less than 1.5 (regardless of the value in the third column)

Assuming values in B2:D2 try this formula in A2

=IF(AND(B2>11,OR(C2>85,D2<1.5)),"X","")

#### Yokiboha

##### Board Regular
Barry, many thanks.

I am most grateful.

Replies
3
Views
85
Replies
15
Views
758
Replies
7
Views
175
Replies
5
Views
341
Replies
9
Views
686

1,129,816
Messages
5,638,496
Members
417,029
Latest member
lingx86

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