# Help with a Harvey Ball formula

Hello everyone who's smarter than me: I need a formula to result in the following:

Field empty if no start date listed

Green ball if complete, regardless of start date

Yellow ball if not complete and start date is within the next week

Red ball if not complete and start date is in the past

Gray ball if start date is more than one week away.

Here are my column names:

• This should work for you

=IF(ISBLANK([Start date]@row), "", IF(Status@row = "Complete", "Green", IF(AND(NOT(Status@row = "Complete"), TODAY() > [Start date]@row), "Red", IF(AND(NOT(Status@row = "Complete"), TODAY() > [Start date]@row - 7), "Yellow", IF(TODAY() + 7 <= [Start date]@row, "Gray", "Error")))))

Tested as below and working.

Hope that helps

Thanks

Paul

• This should work for you

=IF(ISBLANK([Start date]@row), "", IF(Status@row = "Complete", "Green", IF(AND(NOT(Status@row = "Complete"), TODAY() > [Start date]@row), "Red", IF(AND(NOT(Status@row = "Complete"), TODAY() > [Start date]@row - 7), "Yellow", IF(TODAY() + 7 <= [Start date]@row, "Gray", "Error")))))

Tested as below and working.

Hope that helps

Thanks

Paul

• This is so helpful! Thank you Paul!

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!