# Conditional Formatting Based on Two Criteria

#### Bedford

##### Board Regular
In cell “I4” for example I have a drop down with a selection of words describing document types. Conditional formatting is set to use a formula (=\$I4="Invoice"), to determine which cells to format, changing the range; (\$A\$731:\$L\$731,\$AD\$728,\$D\$732:\$D\$736,\$E\$732:\$E\$733,\$A\$7:\$E\$9,\$G\$7:\$AZ\$9,\$A\$4:\$AZ\$6,\$A\$10:\$AZ\$726), to a specified colour.

In cell “T4” is the quantity of the item purchased which has no conditional formatting other than it’s relationship to “I4”. I’m hoping that when inventory is “0” on that item, I can enter B/O and have the cell range change to a different colour.

Do I need to alter the conditional formatting rule in “I4”, or create a separate rule in “T4”?

Hope someone can shed light on this one.
Thanks.

### Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

#### earthworm

##### Well-known Member
Select all cells where you want the conditional colour to apply and then insert conditional formatting

#### Bedford

##### Board Regular
Select all cells where you want the conditional colour to apply and then insert conditional formatting
Thank you.

Replies
3
Views
115
Replies
3
Views
395
Replies
4
Views
124
Replies
11
Views
431
Replies
5
Views
125

1,140,923
Messages
5,703,178
Members
421,280
Latest member
Jaycee01

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