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"))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
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"))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
@Paul Newcome That formula worked great, I did not know anything about the HAS. Thank you very much!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 304 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!