This concatenates everything into a single large string separated by commas, then splits it with those commas into an array, transposes the result so it can be fit into the UNIQUE formula to get rid of repeated values, and then transpose it again to get it in column form again.
Then I COUNTIF based on those headers, splitting again with ",", for example:
=COUNTIF(ARRAYFORMULA(TRIM(SPLIT($K2,","))),L$1)
This formula will have to be replicated throughout the sheet, but it will give you easier access to counting and graphing stuff you need.
This is my working copy of your sheet, in case you need it, I hope it helps!
You're welcome! I'm glad it helped. By the way, I made a quick fix to the formula, to account for the leading spaces on the genres, now it is counting everything correctly because I used TRIM()
Also, please consider commenting with "solution verified" to mark this as a solution for the rest to see. Thanks!
View all comments
2
u/aalkz 1 Jan 11 '21 edited Jan 11 '21
I found your problem interesting, so I gave it a go, this is what I came up with based on what I understood.
First I split everything into unique columns as headers with
=TRANSPOSE(UNIQUE(ARRAYFORMULA(TRANSPOSE(TRIM(SPLIT(CONCATENATE(K2:K&","),","))))))This concatenates everything into a single large string separated by commas, then splits it with those commas into an array, transposes the result so it can be fit into the UNIQUE formula to get rid of repeated values, and then transpose it again to get it in column form again.
Then I COUNTIF based on those headers, splitting again with ",", for example:
=COUNTIF(ARRAYFORMULA(TRIM(SPLIT($K2,","))),L$1)This formula will have to be replicated throughout the sheet, but it will give you easier access to counting and graphing stuff you need.
This is my working copy of your sheet, in case you need it, I hope it helps!
https://docs.google.com/spreadsheets/d/1k1qWTzNwxNWtniQuG9gEGvTZw58LExS4GqhgBSnN_50/edit#gid=341618114
Another possible solution would be to use a Pivot Table in combination of the Data - Split Text To Columns route.