how to automatically highlight a row?

G

Guest

Hi

I am using excel 2003 in window xp

what i want to do is: in a row, if a cell is "Y", the whole row will change to red color. for example

row shipping ite
1 y item
2 n item
3 y item
....

I have more than 500 rows in worksheet. how should i write the code

thank you

jun
 
K

Kilo Bravo

I would just use conditional formating for this.


jun liu said:
Hi,

I am using excel 2003 in window xp.

what i want to do is: in a row, if a cell is "Y", the whole row will
change to red color. for example:
 
R

Rob van Gelder

Highlight all the cells
From the Format menu, Conditional Format
Formula Is: =MATCH("Y",1:1, 0)
Pattern: Red

--
Rob van Gelder - http://www.vangelder.co.nz/excel


jun liu said:
Hi,

I am using excel 2003 in window xp.

what i want to do is: in a row, if a cell is "Y", the whole row will
change to red color. for example:
 

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