Background stays when sorting

H

hunter

Is there anyone to set a background color that doesn't change when sorting?
I have an excel spreadsheet that has different colors every other row. When
I sort, the colored rows move too. How can I get them to stay in place and
only sort the values?
 
B

Bob I

In 2007 you can Format as Table. Or you could use conditional formatting
based on row.
 
G

Gord Dibben

Use Conditional formatting>Formula is:

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

This will survive through sorting and filtering.


Gord Dibben MS Excel MVP
 
Top