Using Countifs with Cells Containing Multiple Values
I am trying to setup a formula that counts how many times a certain option is selected from a dropdown list. In this dropdown you are able to make multiple selections. And this is where I am having Issues.
I was able to use:
=COUNTIFS({Drop Down List}, Option@row, {Week}, Week$2)
to count how many times the option is selected in the column, but only if it was the only selection. Is there a way for me to get this formula to look for option 1 in a cell with multiple options selected?
Answers
-
You would need the CONTAINS function if you are using a text/number column as in your screenshot or the HAS function if you are using a multi-select dropdown type column (note syntax differences between the functions).
=COUNTIFS({Drop Down List}, CONTAINS(Option@row, @cell), {Week}, Week$2)
=COUNTIFS({Drop Down List}, HAS(@cell, Option@row), {Week}, Week$2)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!