# Simple Countif(s) I thought

✭✭✭

This is to strange and I know I am missing something: trying to count to two separate symbol columns to create the metrics that will tell me how many milestones are at risk. One is a checkbox (Milestone) the other is simple Schedule Health (Red/Yellow/Green). The calculation I wrote: Countifs(Milestone:Milestone, "Checkbox", [Schedule Health]:[Schedule Health], "Red"). The result should be 9 for this particular schedule, the result I am getting is 0. The problem I think is in the Checkbox count, when I count the Schedule Health column alone this seems to work alone. Any help is greatly appreciated.

• ✭✭✭✭✭

Hello @LDLValentine,

When writing formulas that involve a check box, you'll need to refer to a 1 or 0 for True, False.

0 being unchecked, 1 being checked.

Replace "Checkbox" in quotes with 0 or 1 like so:

Countifs(Milestone:Milestone, 1, [Schedule Health]:[Schedule Health], "Red")

• ✭✭✭✭✭

Hello @LDLValentine,

When writing formulas that involve a check box, you'll need to refer to a 1 or 0 for True, False.

0 being unchecked, 1 being checked.

Replace "Checkbox" in quotes with 0 or 1 like so:

Countifs(Milestone:Milestone, 1, [Schedule Health]:[Schedule Health], "Red")

• ✭✭✭

Thank you! Perfect and I don't know why I didn't know that and couldn't find the answer. You are my hero of the day.

• ✭✭✭✭✭
edited 01/22/24

Happy to here this works for you.

Thanks for the feedback!

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!