+ Reply to Thread
Results 1 to 4 of 4

How to reset pivot table filter field box contents

  1. #1
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    How to reset pivot table filter field box contents

    Hi all,

    I have a pivot table which reads from a fairly large list of entries (about 17000 records). The table was tedious to build, so I typically update the data, then refesh the table to produce the new results. The issue I have is that the pivot table field filter dropdown boxes tend to accumulate obsolete data over time and I cannot figure out how to reset these so that only the current values are shown.

    For instance, I have a field "Prog" which lists various programs in progress. When I created the table, Prog1, Prog2, and Prog3 existed, and the pivot filter dropdown listed all three. Over time, some of these programs completed, and the records were deleted so data no longer include Prog1 and Prog2. New programs Prog4 and Prog5 were also added. However, the field filter list box shows all 5. (While this is not a big deal with 5 projects, it is wihen the list climbs to 50.)

    If anyone can tell me how to reset this without completely rebuilding the pivot table, I'd appreciate it. I'm using Excel 2003 SP3 and Windows XP.

    ---GJC

  2. #2
    Forum Contributor
    Join Date
    03-22-2006
    Location
    UK
    MS-Off Ver
    Office 2013
    Posts
    275
    Hi gjc

    I had a similar situation recently and found the answer on the Contextures website, see link below.

    http://www.contextures.com/xlPivot04.html

    I opted for the VBA solution, which works fine but it has a quirk in that the 'blank' option in the dropdown list is no longer at the end of the list.

    Would be interested to know why that is but it can be lived with as is.

    Hope this helps ...spellbound

  3. #3
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293
    Thanks, Spellbound.

    The manual solution on the referenced website reordered but did not eliminate the obsolete items. The VBA solution, however, worked fine for me (and "blank" remained at the end of the list in my case...)

    I really appreciate the tip, this will save me a lot of time!

    ---GJC

  4. #4
    Forum Contributor
    Join Date
    03-22-2006
    Location
    UK
    MS-Off Ver
    Office 2013
    Posts
    275
    Glad I could help

    Just tried again with the same macro in my workbook. No old items to remove but still leaves the 'Blank' option not at the bottom in some fields.

    Strange because I am also running Excel 2003 but with SP2.

    As I said before, it is something I can live with.

    spellbound

+ 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. Pivot Table - Few complicated queries
    By acsishere in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2008, 05:08 PM
  2. Store Bitmap Object In Excel 2003 To Access Database?
    By Soar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2008, 02:13 AM
  3. Calculated Field In Pivot Table
    By nailers67 in forum Excel General
    Replies: 0
    Last Post: 04-02-2007, 08:15 PM
  4. Pivot table field question
    By jjjjj55555 in forum Excel General
    Replies: 2
    Last Post: 02-22-2007, 09:09 AM
  5. pivot table field contents
    By stevekirk in forum Excel General
    Replies: 4
    Last Post: 12-04-2006, 08:52 AM

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