Hi All,
I'd like to extract some data from a pivot table if a cell matches another cell. For example, if a particular company offered sale, I want to list all the years they had sale in separated by commas. I have a pivot table where the Company numbers (titled 'Company') and years (titled 'year') are in the Report Filter section.
Then, in an excel tab I have the following:
Company Year Sale 1 sale 2 no sale 3 sale
So, I'd like to have a macro which can input the years in Column 2 from the pivot for company 1 if Column 3 says sale.
So, I'd get something like below:
Company Year Sale 1 2012, 2013, 2014 sale 2 no sale 3 2014, 2015 sale
Many thanks in advance![]()
Bookmarks