# Formula for Past Due Status Value

Options

What formula can I use that will return a Past Due status based on the following parameters:

1. Start Date < TODAY and % Complete = 0
2. % Complete > 0 and End Date < TODAY

I am using the following formula for statuses of Not Started, In Progress, and Completed but I can't figure out how to incorporate Past Due...

=IF([% Complete]@row = 0, "Not Started", IF(AND([% Complete]@row >= 0.01, [% Complete]@row < 1), "In Progress", IF([% Complete]@row = 1, "Complete")))

## Best Answer

• ✭✭✭✭✭✭
Answer ✓
Options

Try this:

=IF([% Complete]@row = 0, IF([Start Date]@row < TODAY(), "Past Due", "Not Started"), IF([% Complete]@row = 1, "Complete", IF([End Date]@row < TODAY(), "Past Due", "In Progress")))

## Answers

• ✭✭✭✭✭✭
Answer ✓
Options

Try this:

=IF([% Complete]@row = 0, IF([Start Date]@row < TODAY(), "Past Due", "Not Started"), IF([% Complete]@row = 1, "Complete", IF([End Date]@row < TODAY(), "Past Due", "In Progress")))

• Options

@Paul Newcome, that worked! You are a Smartsheet God. Thank you!

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

• edited 06/02/22
Options

@Paul Newcome , based on the status column, I'd like to create a Health indicator...

Not Started = Blue

In Progress = Yellow

Past Due = Red

Complete = Green

Any thoughts?

• ✭✭✭✭✭✭
Options

You would use the same syntax as above for a nested IF statement.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!