See if this gets you close to what you are looking for. Open the attatched file, Enable macros, make your selection of values for column A in sheet "Tags Problem"
Run the macro with {ctrl} + t
You do not need the final table in sheet 2 to create your pivot table - but it shows what the values should be.
What the macro does:
-Clears old values in sheets 1&2
-Copies selected values to sheet1
-Creates an array of all tags in column B
-Copies those values to sheet2 and removes duplicates to create unique list
-Places unique list as column headers in Sheet1
-Searches for matches to the values in those column headers against columnB
-Places matched values in relevant column
-Places count of each tag in sheet2
(Uses CountIf to arrive at count for each tag -matching sheet1 values and unique values in sheet2)
Bookmarks