Format Row based on text value in cell

B

Barnabas

I want to format a row based on the value of one of the
cells in the row. Basically, I want to set the color of
the row to green if a particular cell in the row is
COMPLETE and red otherwise. How can I do this?

Thanks,
B.
 
M

Max

Maybe you'll like to experiment with this as well ..

Assume the target row is row2,
the particular cell in the row is B2,
and the spec "COMPLETE"
means B2 contains the word "COMPLETE"

Select row2

Format the fill color for row2 as Red

Click Format > Conditional Formatting (with row2 still selected)

Make the settings under Condition 1:

Formula Is | =TRIM($B$2)="Complete"
Click Format button > Patterns tab > Light green > Ok

Click OK at the main dialog
 
M

Max

Just to cover a possible? lateral interpretation ..

If the spec "COMPLETE" means B2 contains "something"
(rather than the word "COMPLETE")

the lines:
Make the settings under Condition 1:
Formula Is | =TRIM($B$2)="Complete"

should read as:
 

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

Top