Enter non-existant value in page field of Pivot Table

Reise

New Member
Joined
Sep 19, 2014
Messages
1
Hi,

I have have built a report whereby the report filter (page field) for multiple pivot tables and charts is controlled by a single cell. That cell is controlled through a data vaidation list to specify which options are available.

The problem I am having is that not all of the datasets used to populate the pivot tables and charts contain all of the options in the data validation list. Thus, when one of those is selected, multiple warning messages appear and the respective pivot tables function as if I had chosen (All) as the page field level filter.

I want to either hide the warning messages (and I will build in a workaround to hide the table if it shows all) or make the table/chart empty when a non-existant item is chosen as the page field filter.

Is this possible? And if so, how?

Thanks
Reise




If my explanation above is not clear here is a brief example:

Two of the tables show counts of employee absences grouped into several absence length categories as column headers. These counts are by business cost centre and the cost centres are grouped into regions. For example:

[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Region
[/TD]
[TD]<5 days
[/TD]
[TD]5-10 days
[/TD]
[TD]10-20 days
[/TD]
[TD]...
[/TD]
[TD]Total
[/TD]
[/TR]
[TR]
[TD]East Region
[/TD]
[TD]x
[/TD]
[TD]y
[/TD]
[TD]z
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[/TR]
[TR]
[TD]North Region
[/TD]
[TD]a
[/TD]
[TD]b
[/TD]
[TD]c
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[/TR]
[TR]
[TD]West Region
[/TD]
[TD]j
[/TD]
[TD]k
[/TD]
[TD]l
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[/TR]
[TR]
[TD]...
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[/TR]
[TR]
[TD]Total
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[TD]...
[/TD]
[/TR]
</TBODY>[/TABLE]


On another sheet this is broken down to the next level, so within East Region there are several directorates listed as row headings. If one of the regions has had no absences during the respective period then when that region is chosen in the data validation cell there is an error message and the table fills with all cost centres for the business. I want it to either be empty or to just hide the message.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,222,900
Messages
6,168,926
Members
452,227
Latest member
sam1121

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