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