Help: Change background if cell meets criteria

nashsaint

New member
Joined
Aug 24, 2011
Messages
4
Reaction score
0
Points
0
Hi,

is there a way to change the background color of a row if one column of that row contains specific text?

please help. thanks.
 

Ken Puls

Administrator
Staff member
Joined
Mar 13, 2011
Messages
2,520
Reaction score
5
Points
38
Location
Nanaimo, BC, Canada
Website
www.excelguru.ca
Excel Version(s)
Excel Office 365 Insider
Absolutely. You want Conditional Formatting.

What version of Excel are you using? 2003 or lower, or 2007 or higher?
 

Ken Puls

Administrator
Staff member
Joined
Mar 13, 2011
Messages
2,520
Reaction score
5
Points
38
Location
Nanaimo, BC, Canada
Website
www.excelguru.ca
Excel Version(s)
Excel Office 365 Insider
Okay, so here's how you do it:
  • Highlight the row you
  • Go to Home-->Conditional Formatting-->New Rule
  • Choose Use a formula to determine which cells to format
  • In the "Format values where this formula is true", enter a formula that checks the text, like this one: =$E$8="My Text" (Obviously you'll need to update for the correct cell reference and text)
  • Click Format-->Fill-->Choose your favourite colour
  • Click OK until you're back at the Excel grid, and you should be good to go.
HTH,
 
Top