+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting - Shading by Group When Filtered

  1. #1
    Registered User
    Join Date
    09-16-2011
    Location
    Who Knows, Where
    MS-Off Ver
    Excel 2007
    Posts
    14

    Conditional Formatting - Shading by Group When Filtered

    Hello,

    I am using Excel 2010 on XP. I would like to apply conditional formatting to shade every group in alternating color. For example, I have a list of US states. I have a formula already to produce this:

    Current Conditional Formatting Formula: =MOD(SUMPRODUCT(--($a$1:$a1<>$a$2:$a2)),2)

    STATES (unfiltered)

    AL
    AL

    AK
    AK
    AK

    AR
    AR

    AZ
    AZ
    AZ




    When I apply a filter, the rows remain shaded as they were originally:

    STATES (Filter OUT AK)

    AL
    AL

    AR
    AR

    AZ
    AZ
    AZ



    I want the conditional format to change when I have filtered out items (DESIRED RESULT):

    STATES (Filter OUT AK)

    AL
    AL

    AR
    AR

    AZ
    AZ
    AZ



    I would assume SUBTOTAL(3,...) would need to be incorported into the conditional formatting formula above, but I do not know how.

    Thanks for your help!
    Last edited by exs120; 09-20-2013 at 01:48 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Conditional Formatting - Shading by Group When Filtered

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Conditional Formatting - shading weekends
    By jennbates in forum Excel General
    Replies: 2
    Last Post: 05-03-2012, 02:37 PM
  2. Shading Columns with Conditional Formatting
    By Hypnopoison in forum Excel General
    Replies: 1
    Last Post: 04-02-2011, 05:17 AM
  3. [SOLVED] Conditional Formatting Shading For Visible Rows Only
    By manda in forum Excel General
    Replies: 3
    Last Post: 05-22-2006, 05:42 PM
  4. [SOLVED] conditional formatting-shading
    By Shooter in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2005, 05:06 PM

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