color lines in a spreadsheet

B

BWR

Hello, In Excel '07 I want to stagger the color of lines in a spreadsheet -
one grey, then one white. I can do this manually, but when I go to sort the
lines (say change them alphebetically) the color lines change with the
alphabetization. I want the color lines to stay staggered when I sort the
data. I want the staggred colorlines o remain the same and only change the
data.

Staggering the lines maks it easier for employees to read and follow the
correct line.

Please help?!?!?!
 
G

Gord Dibben

Select rows 1:200 or whatever you want the range to be.

In Conditional Formatting>New Rule enter this in "use a formula"

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0

Pick a gray color and OK

Will survive through sorting and filtering.


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

Top