Pivot table to show Filtered Source Data

JV0710

Active Member
Joined
Oct 26, 2006
Messages
429
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Hi

If I filter the data on my source data, Is it possible to have the pivot table NOT include the hidden rows resulting from the filter on the source data ?

For example: if my source data is 1000 rows and 20 columns and I filter the data based on various conditions across the columns. I want to refresh the Pivot table and have it show results without the hidden rows.

Thanks

JVN
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Not without an intermediate step.

Silly question : why not just filter on your Pivot Table instead?
 
Upvote 0
Hi
You are right . . . I would normally just filter on the pivot table.
This particular pivot table that I created, though, I will be sending to a number of users to use. . . And when I was taking them through the spreadsheet and showing them how to use it, I got asked this question.

So, I thought it would be interesting to find out if it is possible. I tried using a dynamic range as the source but it does not exclude the hidden rows.

thanks for your reply

JVN
 
Upvote 0
Off the top of my head you would need to use the Worksheet_Calculate event in the source data worksheet to detect if an Autofilter had been changed (not an elegant solution IMHO), then use AdvancedFilter or something to copy the visible rows to another worksheet. Your Pivot Table would then have to be based on that other worksheet.

Maybe there's a better way, but if there's no pressing need then life is too short - filter the Pivot Table!

:)
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,600
Members
449,038
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top