How to do countif/contains formula
I have a sheet that has drop-down multi-select columns. I am trying to create a metrics sheet that shows the number of people that selected a specific drop-down menu item. For example:
Choose 3 favorite foods: burgers, pizza, sushi, pasta, chicken
They selected: Burgers Pizza Sushi
But I want to know how many people selected just Pizza in the favorite foods column.
Is there a way to do that?
Answers
-
Hi Kiley,
I did some testing:
You can use this formula:
=COUNTIF(Foods:Foods, CONTAINS("pizza", @cell))
What it needs:
=COUNTIF(put the range here, CONTAINS(what you want to search for here, @cell))
Whatโs in green in the image represents the formula that is in the cell above.
Hope it helps,
Sam
-
Thank you very much, Sam! ๐
-
You're Welcome!
Help Article Resources
Categories
Check out the Formula Handbook template!