SOLVED

Count occurences in multiple selection list

%3CLINGO-SUB%20id%3D%22lingo-sub-2347865%22%20slang%3D%22en-US%22%3ECount%20occurences%20in%20multiple%20selection%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2347865%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20looking%20for%20the%20most%20efficient%20way%20to%20count%20the%20number%20of%20times%20a%20string%20occurs%20in%20a%20dataset%2C%20depending%20on%20the%20strings%20in%20another%20column.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20context%2C%20this%20is%20a%20survey%20style%20data%20set%20where%20people%20have%20to%20chose%20their%20location%2C%20as%20well%20as%20tick%20a%20multiple%20selection%20list%20of%20their%20interests.%20The%20output%20groups%20the%20interests%20into%20a%20single%20cell%20separated%20by%20commas.%20I%20was%20wondering%20if%20there%20is%20a%20quicker%20way%20to%20analyse%20this%20other%20than%20splitting%20into%20multiple%20columns.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20with%20the%20below%20dataset%2C%20I%20want%20to%20count%20the%20number%20of%20times%20%22Skincare%22%20has%20been%20selected%20by%20respondents%20who%20have%20selected%20that%20they%20are%20based%20in%20the%20%22UK%22%20in%20the%20first%20column.%20At%20the%20moment%2C%20if%20I%20put%20into%20a%20pivot%20table%2C%20it%20just%20groups%20all%20of%20the%20multiple%20selection%20combinations%20as%20one%2C%20rather%20than%20the%20number%20of%20times%20the%20value%20has%20actually%20been%20selected.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ML2021_0-1620806318199.png%22%20style%3D%22width%3A%20732px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280208i80061BB5547D1CDB%2Fimage-dimensions%2F732x277%3Fv%3Dv2%22%20width%3D%22732%22%20height%3D%22277%22%20role%3D%22button%22%20title%3D%22ML2021_0-1620806318199.png%22%20alt%3D%22ML2021_0-1620806318199.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2347865%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2347915%22%20slang%3D%22en-US%22%3ERe%3A%20Count%20occurences%20in%20multiple%20selection%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2347915%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051722%22%20target%3D%22_blank%22%3E%40ML2021%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20say%20location%20is%20in%20column%20A%20and%20products%20in%20column%20F.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DCOUNTIFS(A%3AA%2C%22UK%22%2CF%3AF%2C%22*Skincare*%22)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2348059%22%20slang%3D%22en-US%22%3ERe%3A%20Count%20occurences%20in%20multiple%20selection%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2348059%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%20so%20much!%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

I am looking for the most efficient way to count the number of times a string occurs in a dataset, depending on the strings in another column.

 

For context, this is a survey style data set where people have to chose their location, as well as tick a multiple selection list of their interests. The output groups the interests into a single cell separated by commas. I was wondering if there is a quicker way to analyse this other than splitting into multiple columns.

 

For example, with the below dataset, I want to count the number of times "Skincare" has been selected by respondents who have selected that they are based in the "UK" in the first column. At the moment, if I put into a pivot table, it just groups all of the multiple selection combinations as one, rather than the number of times the value has actually been selected.

 

Thank you

 

 

ML2021_0-1620806318199.png

 

2 Replies
best response confirmed by allyreckerman (Microsoft)
Solution

@ML2021 

Let's say location is in column A and products in column F.

 

=COUNTIFS(A:A,"UK",F:F,"*Skincare*")

thanks so much! @Hans Vogelaar