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!
-
Happy to help. 👍️
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
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!