# Formula: Count symbols in an RYG column

Options
✭✭✭✭
edited 06/11/20

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?

• ✭✭✭✭
Options

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.

• ✭✭✭✭✭✭
Options

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.

• Options

What if I wanted to only count by 1 column and not the entire sheet?

• ✭✭✭✭✭✭
Options

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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!