![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Sarasota, FL
Posts: 1,539
|
Is there anyway to sort a table without sorting the cell formats?
I have a table where each line is an alternating shade so its easier to read, but when I sort, it sorts the colors too, so they're no longer alternating. -Corticus |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
Use Conditional formatting based on the row number to shade your rows.
These formulas can be used with conditional formatting to shade alternate rows. =MOD(ROW()-Rw,N*2)+1<=N This is for odd banding =MOD(ROW()-Rw,N*2)+1>=N This is for even banding Rw = Starting Row Number N = Number of rows in each band HTH |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Sarasota, FL
Posts: 1,539
|
Thats what I needed, Thanks a bunch for the help!
Corticus |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|