# RYG Formula Based on Checkbox

Smartsheet Community:

I need a little help with this Formula:

=IF(Done@row = 1, "Green", IF(Done@row <> 1 "Grey", "Red")

I would like to have the row turn Grey if None of the Children Checkbox are Checked, but if one is Checked the Parent is Red until all Children are Check-boxes are Checked.

Does anyone have that formula?

Thanks

• Results Came Back UNPARASEABLE

Here is the Exact Formula:

=IF(COUNTIFS(DESCENDANTS([Done]@row), 1) = 0, "Grey", IF(COUNTIFS(DESCENDANTS([Done]@row), 1) <> COUNT(DESCENDANTS()), "Red", "Green")))

• Point of clarification: I want to Keep the Green if all the Children / DESCENDANTS boxes are checked

• Try something like this...

=IF(COUNTIFS(DESCENDANTS([Checkbox Column]@row), 1) = 0, "Grey", IF(COUNTIFS(DESCENDANTS([Checkbox Column]@row), 1) <> COUNT(DESCENDANTS()), "Red", "Green"))

• Results Came Back UNPARASEABLE

Here is the Exact Formula:

=IF(COUNTIFS(DESCENDANTS([Done]@row), 1) = 0, "Grey", IF(COUNTIFS(DESCENDANTS([Done]@row), 1) <> COUNT(DESCENDANTS()), "Red", "Green")))

• I found the problem. I had an additional Parenthesis at the end.

Thanks

• Happy to help! 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!