Using COUNTIF to return fields that contain certain test data

Devin C.
✭✭✭✭
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?
Tags:
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
- 66.6K Get Help
- 435 Global Discussions
- 152 Industry Talk
- 495 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 508 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 37 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!