IF(AND) Formula

Nathan Umbriac
Nathan Umbriac ✭✭✭✭✭
edited 01/04/22 in Formulas and Functions

Hello,

I am trying to write a formula to look at a due date field and compare it to a status field.


If the due date is less than or equal to 90 days from today, the status symbol is green. If the due date is less than or equal to 60 days from today and the status is open, the status symbol is yellow. If the due date is less than or equal to 30 days from today and or the status is open, the status symbol is red.

=IF(AND([Due Date]@row <= TODAY(-30), Status@row <> "Closed", "Red", IF(AND([Due Date]@row <= TODAY(-60), Status@row <> "Closed", "Yellow", IF([Due Date]@row <= TODAY(-90), "Green")))))


Thanks!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!