Filter Pivot table based on value in a cell

Will85

Board Regular
Joined
Apr 26, 2012
Messages
242
Office Version
  1. 365
Platform
  1. Windows
I want to filter my pivot tables based on the month that a user selects on Sheet1 Cell AI.

I have 30 different tabs; each tab contains one pivot table, filtered on the department.

So Sheet 2 is accounting, Sheet 3 is marketing, etc.

Each month the data gets updated, and I want the pivot table to filter data where the period data set equals the value in Sheet1 Cell A1. (Instead of having to go through each of the 30 tabs and change the filter manually).

Sheet1 Cell A1 is a drop down with values 1 through 12.

Is there no way to do this without VBA?

Currently, I have VBA that adds a helper column to my data every time its refreshed that includes a formula to look at the period of each data set and equate to an "Include" or "Exclude" if the value equals or doesnt equal Sheet1 Cell A1.

This helper column is included in each pivot table, so that it accomplishes what I want.

But it just seems like you should be able to do this without VBA.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,216,085
Messages
6,128,732
Members
449,465
Latest member
TAKLAM

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