+ Reply to Thread
Results 1 to 2 of 2

Update pivot using drop-down cell value stored on separate worksheet

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    33

    Update pivot using drop-down cell value stored on separate worksheet

    Hello.

    - I have a drop down cell (C2) on 'Sheet1' which contains a series of fixed values.
    - I have a pivot table on 'Sheet2' called 'TestPiv' with a field 'Test' that corresponds to the value selected in Sheet1 cell C2.
    - I would like the pivot table on Sheet2 to automatically be filtered based upon the value currently selected on Sheet1 cell C2.

    Googling gave me the below, which I've tried to manipulate to my needs but haven't been successful. I've tried:

    (a) adding the Sheet1 worksheet to the Intersect(Target... but learned that the target cell must be on the same sheet.
    (b) creating a "helper" cell in cell A1 of Sheet 2 which references cell C2 of Sheet 1, but the pivot only updates if I physically type the value into A1.

    Any help greatly appreciated!

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    11-05-2019
    Location
    Tiki Island, TX
    MS-Off Ver
    Office 365
    Posts
    168

    Re: Update pivot using drop-down cell value stored on separate worksheet

    Is the drop down cell that is changing on Sheet1 from cell validation or is it actually a drop down combo box you added using the tools on the developer tab?

    If it is from cell validation there are a couple of issues to consider:
    1. You have to have the code you show above on Sheet1 where the cell value is changing. Do NOT use the helper cell but make sure the If Intersect line is referencing your changing cell on C2.
    2. This code only works if the user is typing in the change. If the user is clicking with the mouse then the code needs to be in the OnClick event.

    If it is a combo box then reference the combo box rather than the cell. You also should put your code in the combo box change event rather than the worksheet change event.

+ 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 Filter based off drop down cell will not update in protected sheet
    By THAT guy 112073 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-30-2014, 01:03 PM
  2. Can you update a pivot table using a drop-down without a macro?
    By somedudeonline in forum Excel General
    Replies: 0
    Last Post: 07-23-2013, 06:16 PM
  3. Replies: 3
    Last Post: 03-10-2013, 12:56 PM
  4. Replies: 3
    Last Post: 02-26-2013, 12:54 PM
  5. Replies: 3
    Last Post: 08-22-2012, 03:57 PM
  6. Macro to Update Data from Master Worksheet to Separate Sheets based on Criteria
    By kmnuabea in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2010, 05:49 PM
  7. [SOLVED] Validation Tables For Drop Down list on a Separate Worksheet.
    By azelli1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2005, 10:06 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