Count the number of times a person's name appears in an "Assigned To" column

I currently use the below formula to count the number of times a name appears in the "Assigned To" column. The issue is that this column can have multiple names in the same cell, so I have to created a separate formula for every possible name combination. Is there a way to have a formula that looks for a name string and counts the number of appearances?
Request Tracker Range 9 - is a contact list column named "Assigned To"
Request Tracker Range 6 - is a drop down column named "Status"
=COUNTIFS({Sheet - Request Tracker Range 9}, Category@row, {Sheet - Request Tracker Range 6}, AND(@Cell <>"Closed", @cell<>"Cancelled"))
Best Answer
-
Assuming the Assigned To is a multi-select contact type column, I would suggest:
=COUNTIFS({Sheet - Request Tracker Range 9}, HAS(@cell, Category@row), {Sheet - Request Tracker Range 6}, AND(@cell <>"Closed", @cell<>"Cancelled"))
Answers
-
I would try using CONTAINS for the criteria for that field.
-
@Adam Murphy I have tried using Contains but the formula always returns a 0 value. I tried this:
=COUNTIFS(CONTAINS("John Doe", {Sheet - Request Tracker Range 9}), {Sheet - Request Tracker Range 6}, AND(@Cell <>"Closed", @cell<>"Cancelled"))
-
Assuming the Assigned To is a multi-select contact type column, I would suggest:
=COUNTIFS({Sheet - Request Tracker Range 9}, HAS(@cell, Category@row), {Sheet - Request Tracker Range 6}, AND(@cell <>"Closed", @cell<>"Cancelled"))
-
@Paul Newcome That formula worked great, I did not know anything about the HAS. Thank you very much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!