Link to home
Start Free TrialLog in
Avatar of vegas86
vegas86

asked on

Macro to list PivotTable filter selection

Hello,

Can someone please confirm whether or not it would be possible to create a macro that would look at the filtered range in a pivot table dropdown filter and then list in a cell for example "2012 to 2023". I have attached a picture to give an idea of what I mean. Generally with a pivot table filter, once you select more than 1 item it just shows "Multiple Items" whereas I would like to display the lowest and the highest years as a heading.

I have tried using a formula but I can't work it out.

Can anyone please help?

Thank you!!
Example.pdf
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Yes it is possible. Can you upload a small sample file for "how to do it"?
Avatar of vegas86
vegas86

ASKER

Here you go!
example.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vegas86

ASKER

FANTASTIC :)

Thank you so much!!!!!