+ Reply to Thread
Results 1 to 2 of 2

highlight pivot table rows under condition

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    highlight pivot table rows under condition

    Hi,
    I want to highlight if text are ending "AB".
    I have a pivot table and in the row column, I have column, "Items".
    The pivot table looks like below;

    Name | Task | Items | Total Hours
    John K. QWE Q-AB 3.00
    John K. Send P-AB 1.00
    John K. Total Hours 4.00
    Kate C. Fix Hole 2.00
    Kate C. Tra City-AB 9.00
    Kate C. Total Hours 11.00
    Grand Total 15.00

    I want to highlight Q-AB, P-AB, and City-AB in yellow.
    I used conditional formatting, but when new data entered, the conditional formatting didn't work for new range.
    I have to fix the range manually.
    How can I do this with vba?

    Thanks in advance.
    Last edited by Goodstart14; 10-22-2015 at 04:52 PM.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: highlight pivot table rows under condition

    Hi Goodstart,

    I have tried a couple of possible answers.

    Goodstart14 - CF Examples.xlsx

    First of all, with the newer versions of Excel (2007+) you have Pivot Table Conditional Formatting, but it can only be applied to VALUE fields. Hence, in the first PT you see the hours column has been highlighted.

    However, I got the impression that you wanted to have the TEXT highlighted, not the numbers.

    In the second PT I have achieved this by nominating the whole of column H as the range the CF Applies To.

    I hope this helps, please let me know!

    Regards,

    David

    Please remember, your request is clearer if you attach a sample workbook.
    - Click on Go Advanced and click on the Paper Clip.

    If this has been of assistance, please advise.
    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


+ 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. Highlight pivot cells under a specific condition
    By Avyx in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-06-2015, 07:52 AM
  2. non-VBA way to highlight the Top 3 values per row in a pivot table
    By bhenlee in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-23-2015, 06:53 AM
  3. Replies: 0
    Last Post: 11-18-2014, 07:44 PM
  4. Highlight rows in pivot table when change in dataset cells value
    By kuhin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2014, 10:49 AM
  5. [SOLVED] Condition Formatting in Pivot Table?
    By excellenthelp in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 08-05-2013, 03:21 PM
  6. [SOLVED] Highlight rows with certain condition in some cells
    By SteveK in forum Excel General
    Replies: 2
    Last Post: 03-09-2006, 08:35 PM
  7. Need pivot table to automatically highlight subtotal rows
    By jim37055 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2005, 05:10 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