COUNTIFS and CONTAINS - Multiple Criteria
I have a formula that I am using across worksheets that is working well. However, was just informed that I will need to account for multiple Project Specialists on one project and cannot get the COUNTIFS & CONTAINS to work for me.
My current formula is:
=COUNTIFS({TAC Sourcing Project Tracker - PROJECT SPECIALIST}, $[Primary Column]@row, {TAC Sourcing Project Tracker - STATUS}, <>"Completed", {TAC Sourcing Project Tracker - STATUS Canceled}, <>"Canceled", {TAC Sourcing Project Tracker - BUSINESS}, "Retail")
I am counting how many "Retail" projects a Project Specialist is working on that are active...so drop down status is not "Completed" and not "Canceled". However, I need to be able to use the CONTAINS formula to count projects where there is more than one Project Specialist in the "Project Tracker - PROJECT SPECIALIST" reference. I want to use the CONTAINS formula on the first part of the formula for the $[Primary Column]@row reference.
The field for Project Specialist is a Contact List but I have not had any issues with the COUNTIFS only formula.
Thanks in advance for your help!!
Answers
-
@Paula M. If your PROJECT SPECIALIST column is a multi-select Contact column, try using the HAS function instead of CONTAINS.
Note: The Help page for the HAS function is terrible. I submitted a ticket for the page to be fixed but it hasn't been fixed yet. I've attached my submitted revisions here.
=COUNTIFS({TAC Sourcing Project Tracker - PROJECT SPECIALIST}, HAS(@cell, [Primary Column]@row), {TAC Sourcing Project Tracker - STATUS}, <>"Completed", {TAC Sourcing Project Tracker - STATUS Canceled}, <>"Canceled", {TAC Sourcing Project Tracker - BUSINESS}, "Retail")
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thank you so much Jeff!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!