Is there a way to get the selections from a pivot table filter to display in cells separate from the pivot table?

Example: My pivot table has a filter for months in cell A1.
Over in cell B1, I have the formula =IF(A1="(All)", "YTD", A1). This gives me YTD if everything is selected, or just the month, if one is selected.
Then I use cell B1 to populate a title in my chart.

But if I select a few months - like perhaps I want to make a chart for a quarter, how can I get January, February, March from the filter, rather than "(Multiple Items)"?

thanks,
JJ