Question about Conditional Formating

tazmtiger

Board Regular
Joined
Jul 7, 2005
Messages
194
I have a worksheet where the answer in column "G" is yes or no,

I want the text in column "A" to turn green if the answer in "G" is yes and red if the answer in "G" is no.

My working range is A8:A40 & G8:G40

Anyone can assist me in getting this done?

Thank you!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I have a worksheet where the answer in column "G" is yes or no,

I want the text in column "A" to turn green if the answer in "G" is yes and red if the answer in "G" is no.

My working range is A8:A40 & G8:G40

Anyone can assist me in getting this done?

Thank you!
What version of Excel are you using?
 
Upvote 0
1) Select A8:A40
2) Conditional formatting -> Formula
3) Type in
Code:
=$G8="yes"
4) Set filling to green


5) Select A8:A40
6) Conditional formatting -> Formula
7) Type in
Code:
=$G8="no"
8) Set filling to red


The exact match is important (capitalization) so change "yes" or "no" to the desired text.
Selecting only A8:A40 is important because the rules will only appy there.
 
Last edited:
Upvote 0
excel 2003
Try this...

Select the *entire* range A8:A40 starting from cell A8. Cell A8 will be the active cell. The active cell is the one cell in the selected range that is not shaded. The formula will be relative to the active cell.
  • Goto the menu Format>Conditional Formatting
  • Condition 1
  • Select the Formula Is option
  • Enter this formula in the box on the right:
  • =G8="Yes"
  • Click the Format button
  • Select the Font tab
  • Select a shade of green
  • OK
  • Click the ADD button
  • Condition 2
  • Select the Formula Is option
  • Enter this formula in the box on the right:
  • =G8="No"
  • Click the Format button
  • Select the Font tab
  • Select a shade of red
  • OK out
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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