Manipulation cell colours

mas_lerdanch

Board Regular
Joined
Jun 25, 2007
Messages
64
Is it possible to create a formula that looks at a cell (say A20) and if TRUE changes the colour of A22 to green if false to red?

Long shot...
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
conditional formatting would do just that...

Excel Workbook
AB
20TRUEFALSE
21**
22**
23**
Sheet1


under conditional formatting you would set up these rules under cell A22...

formula is =A20=FALSE (change fill to red)
formula is =A20=TRUE (change fill to green)

then if you copy that cell to B22 it will copy the formatting as well...
 
Last edited:
Upvote 0
First have your cursor in cell A22

if you are on the home tab...there is a contiditional formatting button (under the styles section)...click on new rule...select use a formula to determine which cells to format...

under the format values where this formula is true....type in =A20=TRUE
click on format button...select the green color...

do the same thing but under the new rule type in =A20=FALSE...click on format button...select the red color...
 
Upvote 0
Hey thanks - got that working for the value TRUE what is the value is different text like yes? Can you apply the same to row values such as B6 goes Green when R6 is equal to Yes?
 
Upvote 0
yup...just do the same thing but if it's a text value like YES then just enclose it in quotes...

eg =R6="Yes"
 
Upvote 0
Hey how should I word the formula for two different values for instance
=AM6="Yes" or "Couple" or should I just repeat the formula... silly question really
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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