+ Reply to Thread
Results 1 to 4 of 4

Color every other cell after a filter.

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    Singapore
    MS-Off Ver
    Office 2007
    Posts
    3

    Color every other cell after a filter.

    Hello everyone, I am currently using conditional formating to color every other row of my spread sheet. Unfortuantley, when I utilize a FILTER, to filter the data fields, some of the rows are gone, and often, two even rows remain so they are the same color.

    For example:

    There is data fields...

    1 - A
    2 - B
    3 - A
    4 - B
    5 - A
    6 - A
    7 - A
    8 - A
    9 - A
    10 - A

    If I filter for B, my spreadsheet will only display rows 2 & 4, both of which are the same color due to my conditional formatting (odd rows = one color, even rows = another). I am trying to make it so that these filtered cells would be of different colors, like my spreadsheet before any filters are applied.

    I was hoping that somebody on the board could help me arrive to a solution regarding this problem. This problem only arises in FILTERING scenarios as SORTING does not remove any cells, merely reorganizes them, and my conditional formatting works fine.

    Thank you very much for your time.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    re: Color every other cell after a filter.

    If Row 1 is headers, then in some column (say, A) set the CF formula to

    =MOD(SUBTOTAL(3, A$1:A2),2)=1

    and format as you like.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    09-08-2009
    Location
    Singapore
    MS-Off Ver
    Office 2007
    Posts
    3

    re: Color every other cell after a filter.

    Hello, basically row 1-6 is all the headers/decoration and from row 7 onward, i have my entire data set. From here onward I wish to color my cells. By the way, I have about 20 columns , each of which are capable of being filtered. Multiple filters may be applied at the same time which may effect the cell row ordering.

    I am looking for a dynamic formula that always works, so it would work before I filter data (and in doing so, screw up the order of the cells as some cells are now hidden) and after I filter the data.

    After changing your equation to row 7 in A, it still does not work. I don't know what is wrong. Thanks.
    Last edited by pacer0928; 09-09-2009 at 12:14 AM.

  4. #4
    Registered User
    Join Date
    09-08-2009
    Location
    Singapore
    MS-Off Ver
    Office 2007
    Posts
    3

    re: Color every other cell after a filter.

    Hello everyone, any other ideas? =) Thank you.

+ 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