Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Basic Sort ?

  1. #1
    Board Regular Corticus's Avatar
    Join Date
    Apr 2002
    Location
    Sarasota, FL
    Posts
    1,579
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    MrExcel MVP lenze's Avatar
    Join Date
    Feb 2002
    Location
    Helena, MT
    Posts
    13,690
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    Board Regular Corticus's Avatar
    Join Date
    Apr 2002
    Location
    Sarasota, FL
    Posts
    1,579
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thats what I needed, Thanks a bunch for the help!

    Corticus

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •