+ Reply to Thread
Results 1 to 6 of 6

CF Alternate row shading

  1. #1
    Forum Contributor
    Join Date
    07-16-2015
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    121

    CF Alternate row shading

    Hi

    I am using the following to alternate colour on rows which is fine "=MOD(ROW(),2)=0" is there any way to maintain alternate row colours when heading filters are used?

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: CF Alternate row shading

    Hi,

    Try using this Conditional Formatting formula instead:
    =MOD(SUBTOTAL(3,$A$1:$A2),2)

    Edit: This file shows it working (your formula in Sheet1, the above in Sheet2 - filter 'Age' to '12' to see the difference): CF colour alternate filtered rows.xls

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.
    Last edited by Aardigspook; 07-29-2015 at 03:58 AM. Reason: Added example file

  3. #3
    Forum Contributor
    Join Date
    07-16-2015
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: CF Alternate row shading

    Hi thank you for the quick response.

    The above formula works great, however it does depend on the 1st column being populated the whole length of the working sheet (A2:A70), not too big an issue though will just have to manage it.

    Thanks

    George

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: CF Alternate row shading

    If you have a column which doesn't have any blanks, you can use that in the formula instead - just change $A$1:$A2 to $X$1:$X2 (where X is the column without blanks).

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' on your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  5. #5
    Forum Contributor
    Join Date
    07-16-2015
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: CF Alternate row shading

    Thanks Aardispook

    Just the ticket, thanks again for the quick response.

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: CF Alternate row shading

    You're welcome.

+ 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. Shading alternate groups, not rows?
    By A-Reading in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2014, 11:54 AM
  2. [SOLVED] Shading Alternate Unhidden Rows in Excel
    By CrocHntr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2014, 09:01 AM
  3. Alternate Row Shading - conditional formula not working
    By iyoossaev in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-06-2013, 06:32 PM
  4. Shading/Dates on alternate lines?
    By cheeryble in forum Excel General
    Replies: 4
    Last Post: 10-04-2011, 03:54 PM
  5. Excel 2007 : table alternate row shading failing
    By by1612 in forum Excel General
    Replies: 1
    Last Post: 05-16-2011, 01:00 PM
  6. [SOLVED] Alternate Shading
    By tamiluchi in forum Excel General
    Replies: 9
    Last Post: 04-28-2006, 04:00 PM
  7. Replies: 7
    Last Post: 04-26-2006, 01:14 AM

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