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
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,990
Messages
5,834,743
Members
430,315
Latest member
bobh63

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