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
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!