# Formula to set red/yellow/green status based on information in two fields.

Options

I am trying to set a field to red if an agreement has been sent 30 or more days ago but the received date is blank. I used the following two formulas, but both times, I get the unpassable error. Can you help me figure out what I'm doing wrong?

=IF(AND([ESA Sent Date]@row+30(),[Employer/Student

Agreement Received Date]@row ISBLANK, "Red", IF(AND(([ESA Sent

Date]@row+15(),[Employer/Student Agreement Received Date]@row ISBLANK, ”Yellow”,

“Green”))

=IF(AND([ESA Sent Date]@row+30,[Employer/Student Agreement Received Date]@row ISBLANK, "Red", IF(AND(([ESA Sent

Date]@row+15,[Employer/Student Agreement Received Date]@row ISBLANK, ”Yellow”,

“Green”))

I appreciate your time and help!

Nancy Jones

• ✭✭✭✭✭✭
Options

Try this:

=IF([Employer/Student Agreement Received Date]@row = "", IF([ESA Sent Date]@row< TODAY(-30), "Red", IF([ESA Sent Date]@row<TODAY(-15), "Yellow", "Green")), "Green")

• ✭✭✭✭✭✭
Options

Try this:

=IF([Employer/Student Agreement Received Date]@row = "", IF([ESA Sent Date]@row< TODAY(-30), "Red", IF([ESA Sent Date]@row<TODAY(-15), "Yellow", "Green")), "Green")

• Options

That worked. Thank you so much!

• ✭✭✭✭✭✭
edited 07/17/23
Options
• Options

James,

Thank you so much. I was just trying to work out the is blank piece when I received your update. That's exactly what I needed.

Have a great day!

Nancy

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!