+ Reply to Thread
Results 1 to 3 of 3

sort data without it moving cell colors

  1. #1
    Forum Contributor
    Join Date
    04-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    161

    sort data without it moving cell colors

    I have a sheet with alternating colors (gray,white) for the rows. This makes it easier to read each individual rows data, just like some printer papers. The problem i have is when i sort the data it takes the background color with it and i end up with a mess. does anyone know how to get around this ? Thanks
    Last edited by Traymond; 04-30-2009 at 01:24 AM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: sort data without it moving cell colors

    You don't use backgound colour but conditional format.

    Try to do so:
    1) select your data area
    2) click on 'Tools' menu, then 'condiitonal format'
    3) here select 'formula is', paste formula:
    =mod(row(),2)=1
    4) click on format command and choose background you need
    Now if you sort data background do't change.

    You can also use two colors for odd and even rows using two conditional format:
    '=mod(row(),2)=0' and '=mod(row(),2)=1'

    Regards,
    Antonio

  3. #3
    Forum Contributor
    Join Date
    04-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: sort data without it moving cell colors

    Exactly what i was looking for !!!! It worked perfectly
    Thanks so much for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1