matt-gilbert
Member
I have a pivot table which shows the weather statistics for the past 50 years (rainfall & temperature). My pivot table has a Report Filter based on Year.
I start with a Worksheet called Weather Data where all the raw data is input.
From this I have created a Pivot Table and placed this on a new Worksheet called Weather Pivot. From this I have created a Chart and placed this on a new Worksheet called Weather Chart. I would like the Chart Title to reflect the information that it is being presented ie;
Paraburdoo, WA – Weather Observations for Year/s
I have entered the following formula into the Chart Title.
=CONCATENATE(“Paraburdoo, WA - Weather Observations for ",IF('Weather Pivot'!$B$1="(All)",CONCATENATE((MIN('Weather Data'!E:E)),"-",(MAX('Weather Data'!E:E))),'Weather Pivot'!$B$1))
Where:
'Weather Pivot'!$B$1 = Pivot Table Report Filter field (ie Year) and;
'Weather Data'!E:E = Source data for Year/s
When 2011 is selected from the Report Filter, the result is;
Paraburdoo, WA – Weather Observations for 2011
When (All) years are selected from the Report Filter, the result is;
Paraburdoo, WA – Weather Observations for 1962-2012
When only some years are selected eg 2007, 2008, 2009, 2010 and 2011, the result is;
Paraburdoo, WA – Weather Observations for (Mulitple Items)
How can I return the years as they have been selected in the Pivot Table Report Filter ie;
Paraburdoo, WA – Weather Observations for 2007-2011
Or, if these years are non-contiguous;
Paraburdoo, WA – Weather Observations for 2007, 2008, 2009, 2010, 2011
I have searched everywhere for an answer to no avail. Would be most appreciative for some help.
Thanks in advance
Matt
I start with a Worksheet called Weather Data where all the raw data is input.
From this I have created a Pivot Table and placed this on a new Worksheet called Weather Pivot. From this I have created a Chart and placed this on a new Worksheet called Weather Chart. I would like the Chart Title to reflect the information that it is being presented ie;
Paraburdoo, WA – Weather Observations for Year/s
I have entered the following formula into the Chart Title.
=CONCATENATE(“Paraburdoo, WA - Weather Observations for ",IF('Weather Pivot'!$B$1="(All)",CONCATENATE((MIN('Weather Data'!E:E)),"-",(MAX('Weather Data'!E:E))),'Weather Pivot'!$B$1))
Where:
'Weather Pivot'!$B$1 = Pivot Table Report Filter field (ie Year) and;
'Weather Data'!E:E = Source data for Year/s
When 2011 is selected from the Report Filter, the result is;
Paraburdoo, WA – Weather Observations for 2011
When (All) years are selected from the Report Filter, the result is;
Paraburdoo, WA – Weather Observations for 1962-2012
When only some years are selected eg 2007, 2008, 2009, 2010 and 2011, the result is;
Paraburdoo, WA – Weather Observations for (Mulitple Items)
How can I return the years as they have been selected in the Pivot Table Report Filter ie;
Paraburdoo, WA – Weather Observations for 2007-2011
Or, if these years are non-contiguous;
Paraburdoo, WA – Weather Observations for 2007, 2008, 2009, 2010, 2011
I have searched everywhere for an answer to no avail. Would be most appreciative for some help.
Thanks in advance
Matt