+ Reply to Thread
Results 1 to 5 of 5

How to filter pivot table

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    63

    How to filter pivot table

    I have created a pivot table. I need to filter the "Column Labels" to only 3 entries. In this case I only need /403, /404, /405, and /406.
    If I record the macro, it only "deselects" each entry I don't need one by one. This won't work with future data sets because those data sets will have entries that were not recorded during the creation of the macro.

    Here is the code as I have it now:
    Please Login or Register  to view this content.
    Is there a way, maybe using some sort of if statement, that would deselect all the entries EXCEPT the ones I need?

    Thanks,

    Craig
    Last edited by csh8428; 07-19-2012 at 04:07 PM.

  2. #2
    Registered User
    Join Date
    05-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: How to filter pivot table

    I found this piece of code that was meant to work similarly, but I can't figure out how to manipulate to match mine.
    Please Login or Register  to view this content.
    Last edited by csh8428; 07-19-2012 at 04:40 PM.

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

    Re: How to filter pivot table

    You have marked this thread as solved? Is it?
    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]

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: How to filter pivot table

    Here's another way...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: How to filter pivot table

    Quote Originally Posted by arlu1201 View Post
    You have marked this thread as solved? Is it?
    Yes, Domenic solved it

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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