COUNTIF Question
Is there a formula that allows me to count the number of cells within a range that contain a certain string of text, where the cells in the range also contain other text?
Best Answer
-
Try something like this.
=COUNTIF([Column 1]:[Column 10], CONTAINS("ABC456", @cell))
Did that work/help?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
Dear White,
Try below logic, You can use multiple condition as mentioned below
COUNTIFS({Sheet Reference}, Cell Address, {Sheet Reference}, YEAR(@cell) = $Cell$1)
Example: COUNTIFS({My Tickets Range 1}, Area3, {My Tickets - Range 2}, YEAR(@cell) = $Tickets$1)
Use COUNTIF(for single condition) COUNTIFS (for Multiple Condition)
I hope the above formula will work.
Thanks and best regards.
-
Thanks @Syed Abdul Majid however I'm not sure this will do what I require? I'm looking at a range of cells in one row e.g. [Example 1]@row:[Example 51]@row. And each of the cells in this range contains a string of text e.g. "ABC123" "ABC456" "DEF456" "DEF789". And I want to count how many cells in this range contain the letters "ABC".
-
Try something like this.
=COUNTIF([Column 1]:[Column 10], CONTAINS("ABC456", @cell))
Did that work/help?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thanks @Andrée Starå thats done it.
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!