+ Reply to Thread
Results 1 to 3 of 3

Filter Specific Pivot Table Field based on "Contains Words in Cell Range x:x"

  1. #1
    Registered User
    Join Date
    12-11-2013
    Location
    auckland
    MS-Off Ver
    Excel 2010
    Posts
    56

    Lightbulb Filter Specific Pivot Table Field based on "Contains Words in Cell Range x:x"

    Hello,

    I am trying to automatically filter a specific Pivot Table Field by any items that contain "12 month" or "24 month". I have originally tried to record a macro that goes through and manually ticks them all (resulting in a very long array) but this broke if one of the items in my array wasn't present. I have then done some research and come across a code similar to below which i added a couple of extra details to in an attempt to get it to filter multiple times but this doesn't work.

    Please Login or Register  to view this content.
    If i remove the last line, then it will successfully filter based on Cell A100, but in a weird way. It will only show results on the Pivot Table that contain "12 month" it wont ACTUALLY filter by this caption (the filter shows everything is still ticked). This becomes an issue if people may want to filter the results later on. We just need it to automatically filter it on the first run of the sub (of which this is one part of the code).

    Please advise if I am going about this the completely wrong way. I have found similar threads before for multiple filters but these are for filtering multiple fields not the same field with multiple aspects. I am using Excel 2016.

  2. #2
    Registered User
    Join Date
    12-11-2013
    Location
    auckland
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Filter Specific Pivot Table Field based on "Contains Words in Cell Range x:x"

    Any thoughts anyone?

  3. #3
    Registered User
    Join Date
    12-11-2013
    Location
    auckland
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Filter Specific Pivot Table Field based on "Contains Words in Cell Range x:x"

    bump someone must have come across this issue before. I am still at a loss as to if i am on the right track. No amount of fidgeting with the code will produce a successful result.

+ 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. VBA - Filter a Pivot Table field using "contains" keyword from cell reference?
    By andya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2016, 08:26 AM
  2. [SOLVED] Filter Pivot Table with a fixed value called "TOTAL" in Pivot Field Name
    By trizzo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2015, 12:57 PM
  3. Display "TEXT" in "Values" field in PIVOT TABLE using VBA!!
    By meus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2015, 09:56 AM
  4. Display "TEXT" in "Values" field in PIVOT TABLE using VBA!!
    By meus in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-04-2015, 06:14 AM
  5. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  6. Filter report in pivot table with "greater than" and "less than"
    By gygabyte017 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-29-2012, 08:08 AM
  7. Replies: 0
    Last Post: 09-11-2006, 10:40 PM

Tags for this Thread

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