Using COUNTIF to return fields that contain certain test data
Hi Smartsheet Community,
I am trying to create a Sheet Summary field. I want to count how many times my primary column has "D:" in the task name. When I use COUNTIF it returns fields that only contains D: in the field. (See my attached pic).
Is there something that I am missing or should I use another formula?
Best Answer
-
You'll want to add the CONTAINS function into your formula -
=COUNTIF([Task Name]:[Task Name], CONTAINS("D:", @cell))
Answers
-
You'll want to add the CONTAINS function into your formula -
=COUNTIF([Task Name]:[Task Name], CONTAINS("D:", @cell))
-
BRILLIANT!!
Thank you very much Rachel this work great!
Question: Why does the @cell make it work? I thought it would be [Task Name]:[Task Name] but when I try that it returns a value of 0
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 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
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!