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))
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
-
You will need to incorporate the HAS function like so:
=COUNTIF({Assigned To}, HAS(@cell, Primary@row))
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!
-
That worked! Thank you @Paul Newcome
-
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
- 62.9K Get Help
- 378 Global Discussions
- 208 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 289 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!