coloring cells

  • Thread starter Thread starter 6371
  • Start date Start date
6

6371

I want to alternate colors between successive rows. One blue one white, the
next one blue and the next white and so on to the end of my worksheet. It
there a easier way than to hold the control key and click on each row?


Question # 2 when I sort will the colors stay with the row or will they move
with the sort. Is there a way to get the colors to stay even when I sort?
 
Select a gaggle of rows(not cells) the Format>Conditional Formatting

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

Pick your blue color and OK

Alternate row shading will survive sorting and filtering.

Or this version which will not shade blanks rows below your actual data.

=AND(MOD(SUBTOTAL(3,$A1:$A$2),2)=0,COUNTA(ROW())>0)


Gord Dibben MS Excel MVP
 
Back
Top