Show a row shaded when a cell contains certain data

G

Gadgetman

I have a spreadsheet which if column K has the data 'T2' in it I want the
whole row to be shaded red. Can anyone explain how to do this?
Thanks
Steve
 
D

Dave Peterson

Select the range that should be affected (A:Z???)
Then with the activecell in row #1
Format|conditional formatting
Formula is:
=$k1="T2"
and give it a nice format
 
E

Elkar

Select column K
From the Format Menu, choose "Conditional Formatting..."
Change "Cell Value Is" to "Formula Is"
Enter the formula: =COUNTIF(K:K,"T2")>0
Choose your format
OK

HTH,
Elkar
 
G

Gadgetman

Thanks it did work but only in the K cell. What I need is for it to high the
whole row in the same shade.
Thanks
Steve
 
G

Gadgetman

Sorry Dave but you lost me. I tried it but it doesn't seem to work perhaps
if you could put it into idiots talk I may understand it a bit better.
Thanks
Steve
 
D

Dave Peterson

Select all the columns you want formatted (select them all if you really meant
the entire row)

Notice that there's one white cell in that selection. That's the activecell.

Then follow those same instructions
format|conditional formatting
formula is
=$k1="T2"

and give it the format you want.

I'm not sure this helps. But you may want to explain what you don't understand
and what you did if it doesn't work.
 
D

Dave Peterson

Ps. Make sure that row 1 is visible when you do this--else the activecell may
not be row 1.
 

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