Can a COUNTIF formula "count" when there are multiple values in one cell?
I've created the following formulas to count how many times a person's name is appearing in a configurable (Contact List) column for Project Lead and then Assigned To on another sheet:
=COUNTIF({Project Lead}, Primary@row)
=COUNTIF({Assigned To}, Primary@row)
The Primary@row is directing to the name of the person I have typed out on the sheet I'm creating the stats on (that is the same name being displayed on the sheet I'm referring to).
The formula is working for cells that only list 1 persons name, but where there are cells in the column that include more than 1 name, the formula won't work. Can the COUNTIF or COUNTIFS formula somehow count values when there are more than 1 (and different) values in the same cell? If not, what formula should I be using?
Best Answer
-
You will need to incorporate the HAS function like so:
=COUNTIF({Assigned To}, HAS(@cell, Primary@row))
Answers
-
You will need to incorporate the HAS function like so:
=COUNTIF({Assigned To}, HAS(@cell, Primary@row))
-
That worked! Thank you @Paul Newcome
-
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
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!