How do I fill every other line with a color?

D

deann

How do I fill every other line with color in an excel spreadsheet without
doing it line by line?
 
F

FSt1

hi
use conditional formating.
If formula is......=mod(row(),2)
pick your color.

Regards
FSt1
 
D

deann

I give up. I've tried highlighting the section that I want every other line
filled with color, selecting conditional formatting, selecting formula 1,
typing in =mod(row(),2)=0, selecting my pattern color, clicking ok, and
clicking ok again. It's not working. I've even tried it without
highlighting the section first. Also tried it without using the =0 part of
the formula.

Poo poo on this. hahaha
 
G

Gord Dibben

Select the number of rows to color...say 100.....then Format>Conditional
Fomatting>Formula is

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0 Format to a nice color.

This will retain the row formatting throughout sorting or 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