Using COUNTIF on a multi-select column.
I am trying to use COUNTIF on a multiselect column when two or more items are selected.
very easy when only one item is selected but not working with multiple items selected.
Answers
-
@FernandoO Could you share , how are using the formula and what you get, and also what are you using instead and what you want to get.
Thanks
Rodolfo
-
I have tried
=COUNTIF(AND({Range1},"Criteria1",{Range1},"Criteria2")) and get an Incorrect argument.
I have tried using Contains as well.
A little more context
I have a multi- select column and I want to count all the instances of
A -only selected
B only selected
A&B selected selected. (Not to include A-only instances or B-only instances
-
Hi @FernandoO
The way I would do this is to set up a multi-select column in the sheet with the formula. Then I would reference the cell in that multi-select column as my "criteria" in the formula, like so:
=COUNTIF({Range1}, HAS(@cell, [Multi Select]@row))
If you only have two possible options to select, you could also look for that exact combination by removing the HAS, like so:
=COUNTIF({Range1}, [Multi Select]@row)
Let me know if this makes sense and works for you.
Cheers,
Genevieve
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.8K Get Help
- 437 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!