+ Reply to Thread
Results 1 to 1 of 1

Pivot Table Filter Drop Down Value Change

  1. #1
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Pivot Table Filter Drop Down Value Change

    The attached worksheet illustrates the problem. I have a data source (Cols A:C) an a simple pivot table built from the data source (Cols F:J). Cell G1 is a filter that filters the pivot table based on the Site Name.

    Here is how to "break" the pivot table: Select a Site in the filter (Site 03, for example). Type in "Site XX." You will get a message stating, "No item of this name exists in the pivot table. Rename 'Site 03' to 'Site XX'?"

    If you select OK, it reassigns Site 03 to Site XX in the drop down list. Now the only way to see data for Site 03 is to select Site XX.

    When you do this manually, obviously you are not going to make the selection unless you have some extenuating circumstance. The issue I had is that I was running this exercise in code, looping through a list of sites. So the old site was there, and the new site was copied in. But the new site didn't exist in the data. So (since I had display alerts turned off), the code happily reassigned the new site drop down. So Site A on the list pointed to Site A and Site B pointed to Site A.

    There are work-arounds and checks to see if the site exists in the data before setting the filter such as doing a COUNTIF on the source data.

    I would like an additional safety net. Is there a way to turn this feature off? I can barely think of a circumstance where I would want to use it.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Change Chart Pivot series Colour depending from Pivot Table Filter value
    By BrianAll in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2018, 02:20 PM
  2. Drop down to filter a Pivot Table
    By burcha22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2017, 04:32 PM
  3. Replies: 1
    Last Post: 07-16-2015, 05:46 AM
  4. Replies: 6
    Last Post: 07-31-2014, 12:56 PM
  5. [SOLVED] Remove drop down filter from Pivot Table
    By ZuneidDassu in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-26-2014, 04:41 AM
  6. Pivot table, assigning a cell wo be change the Pivot table filter
    By jwongsf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-28-2012, 05:00 PM
  7. Change Pivot table Filter Based on Cell Value *Multiple Filter items* Possible?
    By Flydd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2012, 06:57 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