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:

Region
<5 days
5-10 days
10-20 days
...
Total
East Region
x
y
z
...
...
North Region
a
b
c
...
...
West Region
j
k
l
...
...
...
...
...
...
...
...
Total
...
...
...
...
...

<TBODY>
</TBODY>


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.
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Watch MrExcel Video

Forum statistics

Threads
1,109,348
Messages
5,528,187
Members
409,807
Latest member
nicky736

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top