Count ONLY numeric values
Hello!
Is there a way to use the count function to count only numeric values and/or exclude cells that have text in them?
IE, I want this column count to be 8, not 9 without having to add a -1.
Thanks!
Answers
-
Hi @jbatden
I hope you're well and safe!
Try something like this.
=COUNTIF([Project ID]:[Project ID], CONTAINS(2022, @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 support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. 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.
-
The real challenge here is that
####-### is actually a text value. So you would need to find something that they all have in common (similar to @Andrée Starå's approach) or you would need to find something that is common with all of the rows you want to exclude.
If it could be variable numbers but will always have the "-" in it with no letters, you can use:
=COUNTIFS([Project ID]:[Project ID], IFERROR(VALUE(SUBSTITUTE(@cell, "-", "")), 0) <> 0)
Basically we strip the "-" and wrap it in a VALUE function. If the cell has just numbers and a "-" then the value function would convert that into a number that does not equal zero. If it is not able to be converted into a number, then VALUE function would throw an error, so we use an IFERROR to output a zero in those instances. We then tell the COUNTIFS to count all of the rows where the VALUE/SUBSTITUTE combo outputs an actual number and skip over the cells that do not.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 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!