# Status Formula

Options
✭✭

Hi all,

I am struggling to create a formula that works and wonder if you can help me….

Duration Equal to or Less than 0, Gray.

Duration Greater than 0 but “Email Sent” & “Return Old Device” unchecked, Yellow.

Duration Greater than 20 but “Email Sent & “Return Old Device” unchecked, Red.

Duration Greater than 0 and “Email Sent” & “Return Old Device” is checked, Green.

I want gray to mean not started, yellow in progress, red overdue, and green complete. If that makes sense. Thanks in advance for your help.

Tags:

## Answers

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Try something like this.

```=
IF(Duration@row = "", "",
IF(Duration@row <= 0, "Gray",
IF(AND([Email Sent]@row = 0, [Return Old Device]@row = 0, Duration@row > 20), "Red",
IF(AND([Email Sent]@row = 0, [Return Old Device]@row = 0, Duration@row > 0), "Yellow",
IF(AND([Email Sent]@row = 1, [Return Old Device]@row = 1, Duration@row > 0), "Green")))))
```

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!

• ✭✭✭✭✭✭
Options

You're more than welcome!

Remember! 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.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!