+ Reply to Thread
Results 1 to 5 of 5

Pivot Table with report filter

Hybrid View

  1. #1
    Registered User
    Join Date
    10-02-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    17

    Pivot Table with report filter

    Dear Friends,

    I have created a pivot table using vba macro, I have added few city names in report filter field, now the pivot table shows All options, but I want to select specific cities from specific ranges from sheet1. If i give 5 city names in Range(J1:J5), these names to be filter automatically in pivot table. Is it possible?

    Regards,
    Jay

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

    Re: Pivot Table with report filter

    It is possible but we will need a sample workbook to help you.
    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.

  3. #3
    Registered User
    Join Date
    10-02-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    17

    Re: Pivot Table with report filter

    Hi,

    Sample report attached for you reference. I have selected multiple options in report filter. The same thing want to be filtered automatically by referring cell range.

    Regards,
    Jay
    Attached Files Attached Files

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

    Re: Pivot Table with report filter

    I just got back from vacation. I will look at this issue when I clear my backlog.

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

    Re: Pivot Table with report filter

    I made another pivot table in column L. You can move this pivot table anywhere. Even to a hidden sheet. I contains a unique list of cities found in the source data. I overlaid this with a named dynamic range: City_List =OFFSET(Sheet2!$L$2,0,0,COUNTA(Sheet2!$L:$L)-1,1). This range shrinks and grows with the list of cities. Its purpose is to provide data validation for cells J1:J5 so that only valid city names can be added there.

    I defined the range J1:J5 as a static named range: Filter_List.

    The basic logic of the program is to turn on all the cities in the pivot table. Then build a master string containing the selected cities. Then go back through the City Name filter for the pivot table and if a city name in the filter is not contained in the master string, turn it off.
    Attached Files Attached Files

+ 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. Replies: 0
    Last Post: 07-14-2016, 03:51 PM
  2. Filter in Pivot Table's Report Filter
    By mxlew in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-10-2015, 12:46 AM
  3. [SOLVED] How to set a 'Date Filter' on a field in the 'Report Filter' section of a Pivot Table?
    By Rhino_dance in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-28-2013, 11:01 AM
  4. [SOLVED] Pivot Table report filter
    By dabrows in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-06-2012, 12:48 PM
  5. Replies: 0
    Last Post: 11-18-2011, 07:31 AM
  6. Pivot Table report filter
    By nazimscr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2011, 07:37 AM
  7. Place a number filter on a report filter in a pivot table
    By reuben.doetsch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-01-2010, 12:41 PM

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