Counting each of the values in a multi-contact field
I have a primary sheet where team members are dropped into a contact column if they're working on a project. So the Contact column for any given project row might have one contact or three contacts in it. Then we have a project status column.
Example... (Project Name Column | Team Contact Column | Status)
Project 1 | Kate
Project 2 | Kate, Aaron, Kara
On another sheet, I've built out a summary sheet for the various team contacts and the status of their projects. I have it setup to pull the following (screenshot) using this formula:
=COUNTIFS({Business Leads Involved Staff}, PARENT(Metric@row), {Business Leads Status}, Metric@row)
HOWEVER, if I have two team members in the team contact column, it will ONLY count the first one and ignores the rest.
Is there a way via formula I can better pull out any additional team members so they get their credit for projects?
Appreciate any insights! Thank you!
Answers
-
You would need to incorporate the HAS function.
=COUNTIFS({Business Leads Involved Staff}, HAS(PARENT(Metric@row), @cell), {Business Leads Status}, Metric@row)
-
@Paul Newcome Thanks for such a quick response! I plugged the formula in but it doesn't seem to be pulling it correctly still. The other data remains correct (single counts) but still not pulling in where we have two people listed in a cell. I'm also now seeing that I misspoke and I apologize - it isn't pulling EITHER person in the cell. So when both Aaron and Kara are listed with a "developing" client, they both show "0" and should show "1". Greatly appreciate your help if you know of another tweak to add to the formula. Thank you!
-
Can you provide a screenshot of the formula open in the sheet as if you are getting ready to edit it? I use the above very frequently with no issues.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 416 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 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!