Naming the graph title based on first and last slicer item

RobbertH

Active Member
Joined
Apr 29, 2008
Messages
310
How would i go about titling my (pivot)graph based on the first and last item selected through a slicer.

Basicall the slicer allows the user to select the data range the graph is based on and i want to show the selection in the title of the graph.

Hope you can help! Thanks
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
I only know how to put a text cell in a chart - that could reference a cell that itself references your slicers.
 

RobbertH

Active Member
Joined
Apr 29, 2008
Messages
310
That would be a workaround but how do i get the first item of the slicer in a cell, and idem the last?
 

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
Your user selects the data range - say he enters 3 in A1 and 10 in B1

in a spare cell put =concatenate("graph of xxxxxx for values between ", A1, " and ",B1)

set up the text cell in the chart and make it equal the cell with the concatenate formula
 

Watch MrExcel Video

Forum statistics

Threads
1,123,271
Messages
5,600,651
Members
414,399
Latest member
Ninjee

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
Top