Include a "does not contain" with a COUNTM
I want to COUNTM on a multi-select column but I do not want to include the Speaker Name of NO EXTERNAL FACULTY. So if that's the only selection in a row it should return a '0' and if it's in a row with a Joe Bloggs and Jane Doe, it returns a '2'.
Can you combine a COUNTM with a NOT CONTAINS or similar?
=COUNTM([SPEAKER NAME]@row, NOT(HAS("NO EXTERNAL FACULTY", @cell))) and =COUNTM([SPEAKER NAME]@row, NOT(HAS(@cell, "NO EXTERNAL FACULTY"))) give me a '2' when only NO EXTERNAL FACULTY is the only selection.
I get the same answer for NOT CONTAINS too so I'm stumped!
Best Answer
-
You can use something like this:
=COUNTM([SPEAKER NAME]@row) - COUNTIF([SPEAKER NAME]@row, HAS(@cell, "NO EXTERNAL FACULTY"))
Sample output:
Hope this helps, but if you've any problems/questions then just post! 🙂
Answers
-
You can use something like this:
=COUNTM([SPEAKER NAME]@row) - COUNTIF([SPEAKER NAME]@row, HAS(@cell, "NO EXTERNAL FACULTY"))
Sample output:
Hope this helps, but if you've any problems/questions then just post! 🙂
-
It's a pure "doh" moment when you see it written out!! Thanks so much Nick!
-
No problem, glad to have helped! ☺️
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!