Help with IF AND formula

I appreciate the wealth of knowledge in this community. I have reviewed several scenarios around my similar formula, but still nothing is working. I continue to get #UNPARSEABLE. Hoping some expert out there can help!!

The following formulas work independently, but I need them to work together and drive the RGYG buttons for health.

=IF([Percent of Completion]@row = 1, "Green")

=IF(AND([Percent of Completion]@row < 1, [Due Date]@row < TODAY()), "Red")

=IF(AND([Percent of Completion]@row < 1, [Due Date]@row < TODAY(30)), "Yellow")

=IF([Percent of Completion]@row = 0, "Gray")

Combined I have tried several ways, but this was the best I could come up with:

=IF(([Percent of Completion]@row = 0, "Gray"), IF([Percent of Completion]@row = 1, "Green"), IF(AND([Percent of Completion]@row < 1, [Due Date]@row < TODAY()), "Red"), IF(AND([Percent of Completion]@row < 1, [Due Date]@row < TODAY(30)), "Yellow"))

Thanks in advance, Lindsey Jones

Comments

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!