Conditional format in a range but with two conditions in the row.

guinch

New Member
Joined
Sep 16, 2014
Messages
2
I'm looking for some help with some conditional formatting.

I have a sheet where if a value appears in a range of cells then a cell in another column is marked red. If the value does not appear in the range the same cell is marked green.

So I have two CFs:

"=COUNTIF(PDU,A8)=1" turning the cell red

"=COUNTIF(PDU,A8)=0" turning the cell green

This works fine.

However there is another column that determines if the item is actually used or just preliminary booked. So I would like the same red/green cell to turn amber if the red condition is met and the same row that it is met on has a certain value in another column.

So if in cells F3 to F9 any cell contains the value x then another cell turns red. If not it turns green. But if a cell in that range, say f5, does contain the value x then I want to check if B5 contains the value y and if it does then the red/green cell should be amber.

I do not know how easy to understand that is. If it’s not clear let me know and I'll try again.

And thanks in advance for your help.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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