How do I fill every other line with a color?

  • Thread starter Thread starter deann
  • Start date Start date
D

deann

How do I fill every other line with color in an excel spreadsheet without
doing it line by line?
 
hi
use conditional formating.
If formula is......=mod(row(),2)
pick your color.

Regards
FSt1
 
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
 
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
 
Back
Top