Conditional Format - using a formula

ChrisUK

Well-known Member
Joined
Sep 3, 2002
Messages
675
Hi,

I have a large sheet with a selection of cells with a validation list in each cell (Yes,No,Maybe). Depending on the cell value I have a conditional format set of Green, Yellow or Red.

So far so good

However, I have inserted a new column at the start of the sheet now where the cell value is also "Yes". How can I use a formula in each of my conditional formats is do what it is now but also to fire if the cell in the new column on the same row is "Yes" - is this possible

Thank in anticipation

Chris
 

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.
Not entirely clear what you mean? So does 'yes' have to appear in the new column for any formatting to appear?

Maybe:

=AND($A1="yes",$B1="yes")
 
Upvote 0
The Data table is in column AA to EZ - these cells each have a validation list which has Yes,No or Maybe and I have set a conditional format for Green, Yellow or Red based on the value in the cell

However, Now I have added a set of data in column B which is either Yes or ""

What I want to do is add a new conditional format to each of the cells in column AA to EZ to say if B[x] = "Yes" then the format should be purple

I've tried messing around with the conditional format which uses a formula and stopping when true whilst placing it at the start but nothing seems to work :(

Chris
 
Upvote 0
You need to use a formula condition using:
=$B2="yes"
assuming the formatting is applied from row 2. Note there is a $ before the B but there isn't one before the 2 - that is very important!
 
Upvote 0
Its probably to do with the absolution of your cells.

These work for me in this order:

=$B1="Yes" fill purple
=AA1="Yes" fill green

etc
 
Upvote 0
You need to use a formula condition using:
=$B2="yes"
assuming the formatting is applied from row 2. Note there is a $ before the B but there isn't one before the 2 - that is very important!

So close!!

Problem with this is its now turning the whole row purple not just the one cell

So I have altered the formula to =AND (AA2<>"", $B2="Yes")

Works a treat now, thanks for your help and putting me on the right track

Chris
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,225
Members
448,877
Latest member
gb24

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