Options

Good afternoon, everyone:

I'm trying to write a formula that will do the following:

If the end date is 14 days or less from today give me a yellow stoplight if the end date is past due give me a red stoplight, if the end date is greater than 14 days from today give me a green light and if the % complete=100% regardless of the dates give me a green stoplight regardless and if the end date is blank give me a blue stoplight.

I've been trying but have had no luck. Appreciate any assistance. Thank you so much.

• ✭✭✭✭✭✭
Options

Try the below:

=IF([%Complete]@row = "100%", "Green", IF(ISBLANK([End Date]@row), "Blue", IF( [End Date]@row < TODAY(), "Red", IF( ([End Date]@row - TODAY()) <= 14, "Yellow"))))

• ✭✭✭✭✭✭
Options

Try the below:

=IF([%Complete]@row = "100%", "Green", IF(ISBLANK([End Date]@row), "Blue", IF( [End Date]@row < TODAY(), "Red", IF( ([End Date]@row - TODAY()) <= 14, "Yellow"))))

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Try something like this.

=IF([%Complete]@row = 1, "Green", IF(ISBLANK([End Date]@row), "Blue", IF( [End Date]@row < TODAY(), "Red", IF( ([End Date]@row - TODAY()) <= 14, "Yellow"))))

Smartsheet looks at the numbers in a column formatted for percentage as values between 0 and 1. You'd need to use decimal values instead for it to work

25% = 0,25 (0.25)

50% = 0,5 (0.5)

100% = 1

Depending on your country/region, you'll need to exchange the comma for a period.

Did that work/help?

I hope that helps!

Be safe and have a fantastic week!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• Options

Thank you both. Appreciate the assistance. Enjoy your day!

• ✭✭✭✭✭✭
Options

Happy to help!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!