Trying to use COUNTIFS to count Items in a drop-down column
I have a drop-down column for Issues and a column for Campuses, and I'm trying to count the number of times an issue shows up for each campus. The formula that I'm using is counting the issues, but only if it is the only item selected in the drop-down:
=COUNTIFS({Campus}, "Chico", {Issue}, "Unilateral Change")
Instead of retuning a count of 4, its counting only 3.
Best Answers
-
If you're Counting in a MultiSelect column, you'll want to use the HAS function to see if the cell has that value along with others or not.
Try this:
=COUNTIFS({Campus}, "Chico", {Issue}, HAS(@cell, "Unilateral Change"))
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Genevieve,
It worked! I had forgot a comma in the equation. Thank you.
-
I'm glad to hear it! No problem at all.
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Hi @NewtoSmartsheet
Hope you are fine, Please add a copy of your sheet or a screenshot (after removing or replacing any sensitive information). This will make it easier for me to provide the appropriate answer to your question.
Or if you like me to fix the formula directly on your sheet please share me as an admin on a sample copy of your sheets ( Source & Destination ) and i will Create the exact formula for you then you can copy it to your original sheet.
My Email for sharing : Bassam.k@mobilproject.it
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
If you're Counting in a MultiSelect column, you'll want to use the HAS function to see if the cell has that value along with others or not.
Try this:
=COUNTIFS({Campus}, "Chico", {Issue}, HAS(@cell, "Unilateral Change"))
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Hi Genevieve,
It still will not count anything that has more than one item in the multi-dropdown field.
-
Can you clarify what each of your column references are? Is the {Issue} field the multi-select or is the {Campus}? Or both?
It would be helpful to see a screen capture of the source sheet, but please block out sensitive data.
Thanks!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Genevieve,
It worked! I had forgot a comma in the equation. Thank you.
-
I'm glad to hear it! No problem at all.
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
one more question: I am trying to count all of the times that "Unilateral Change" is selected for all of the campuses, the formula is not counting the instances where the campus multi-dropdown has more than one campus selected. This is the formula I tried:
=COUNTIFS({Campus}, HAS(@cell, [Metric Description]13:[Metric Description]37), {Issue}, HAS(@cell, "Unilateral Change"))
-
Can you clarify what this range is:
[Metric Description]13:[Metric Description]37
Are you looking for multiple possible Campuses?
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!