sort data without changing pattern
Here's a general formula for setting a periodic conditional formatting:
=MOD(ROW()-offset,period)=0
will format every 'period' row, and move the pattern up or down by 'offset'.
For example, to highlight every fifth row with the first highlighting in row
4 the formula would read =MOD(ROW()+1,5)=0
g
"Gord Dibben" wrote:
=MOD(SUBTOTAL(3,$A1:$A$2),2)=0
Used in Conditional Formatting as Formula.
First select a great whack of rows then enter the formula in activecell
only.
Gord Dibben MS Excel MVP
On Tue, 6 Apr 2010 07:30:03 -0700, Dan
wrote:
I have a worksheet where every other row has a 'pattern' in it to help make
it easier to read across the spreadsheet.
The problem I'm running into is as I add new rows at the bottom of the
spreadsheet and then resort them into their correct place, the patterns go
with the sort and now the patterns have to be redone again the get them back
to every other row.
Any suggestions?
.
|