Using COUNTIFS to find a partial text match in 1 cell + other conditions
Hi Smartsheet Community,
I'm having trouble with a COUNTIFS formula and hoping you can help. I'm trying to count all rows that are assigned to a specific person. Because it's possible to have multiple assignees for a task on my sheet, I need to do a partial match for the assignee name.
Here is the formula I've created:
=COUNTIFS({Range}, CONTAINS("Doug", @cell))
For some reason this formula is returning 0 instead of the correct value. Can someone please let me know what I'm doing wrong?
Thanks,
Answers
-
Are the assignees designated with a multiselect dropdown?
-
No, with a Contact list column that allows multiple contacts per cell.
-
Try using HAS instead of CONTAINS. You also do not need to use COUNTIFS since you are only testing one condition. COUNTIF is appropriate here.
=COUNTIF({Range}, HAS(@cell, "Doug"))
-
That worked, thanks so much for your help Carson!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!