Formula: Count symbols in an RYG column
I am trying to use a simple formula to count my number of different colored symbols in a column, RYG. I have many parent rows with 6 children each. 14 of the parent rows have a green symbol and all the others are currently blank, no symbols whatsoever. The formula I'm testing is =Count([Count Green:Count Green], ="green"). The column is named Count Green and is just a test column. The formula is returning a value of 15. I did a filter for all of the green symboled rows and I can visually verify that there are 14 green symbols.
My question: Why is the formula returning a value of 15 and not 14?
Best Answer
-
It's counting 15 because the =COUNT formula counts values in ranges, only. Your comma and "Green" is being counted as a green. So fourteen plus your additional "Green". What you need is a =Countif formula.
Try This: =Countif([Count Green]:[Count Green], "Green")
Answers
-
It's counting 15 because the =COUNT formula counts values in ranges, only. Your comma and "Green" is being counted as a green. So fourteen plus your additional "Green". What you need is a =Countif formula.
Try This: =Countif([Count Green]:[Count Green], "Green")
-
Okay, that worked perfectly. I could have sworn I tried the COUNTIF but may have just gotten crazy screen eyes. Thank you for the help. Very much appreciated.
-
Absolutely! I always keep this link at hand when experiencing oddities with a formula:
You can see the requirements for every function that smartsheet offers here and filter by key words. Hope that helps.
-
What if I wanted to only count by 1 column and not the entire sheet?
-
The =Countifs formula will work with one column and criterion as well as many.
=Countifs([Symbol Column Name]:[Symbol Column Name], "Green")
will give you all the green in your symbol column. Just replace Symbol Column name with your actual column name. If you have no spaces in your column name - just remove the brackets.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 438 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 451 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 282 Events
- 32 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!