# IF formula for RYG balls

Options

Hi I am trying to make a formula that states:

If it is 14 days past the TBF date field, and the Reported date field is blank, make the ball Red.

If it is 7 days past the TBF date field, and the Reported date field is blank, make the ball Yellow.

If the Reported date field is NOT blank, make the ball Green.

Nothing I try seems to work - I'm not the best with If & Today statements, and I have a feeling I need both.

• ✭✭✭✭✭✭
Options

Try something like this...

=IF([Reported Date]@row <> "", "Green", IF(TODAY() >= [TBF Date]@row + 14, "Red", IF(TODAY() >= [TBF Date]@row + 7, "Yellow")))

• ✭✭✭✭✭✭
Options

Try something like this...

=IF([Reported Date]@row <> "", "Green", IF(TODAY() >= [TBF Date]@row + 14, "Red", IF(TODAY() >= [TBF Date]@row + 7, "Yellow")))

• Options

that worked perfectly, thank you!

• ✭✭✭✭✭✭
Options

Happy to help! 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!