If/Then Rule

  • Thread starter Thread starter Honorbar
  • Start date Start date
H

Honorbar

I want to create a rule that when there is a "yes" answer in a column, that
whole row will remain black in color but when there is a "no" answer in a
column, that whole row will turn grey in color. I know it has got to be a
"If Then" rule but I don't know how to write it. Does anyone have any
tips/guidance on what the rule would look like? Thanks!
 
Hi,

You can use conditional formatting.

Select the row then
Format|Conditional format - Formula is - and enter the formula

=$A1="Yes"

Pick a colour
click Add and repeat the above but this time use the formula

=$A1="No"
and pick a different colour

Mike
 
Conditional Formatting

Select the rows you want colored.

Format>CF>Condition1>Formula is: =$A1="yes" format to black.

Condition2>Formula is: =$A1="no" format to gray

Assumes column A is where yes or no will appear.

Adjust to suit.



Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top