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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!