# Nested IF RYG

I am having a hard time with this...

I need a nested if for the following:

If percentage complete is less than 60% with three days left until due I would like it red.

If anything is past due it is red

If the percentage complete is less than 75% with two days left until due I would like it yellow.

All other green

• ✭✭✭✭✭

try this...

=IF([Percent Complete]@row = 1, "Green", IF(Date@row < TODAY(), "RED", IF(AND(Date@row - TODAY() < 3, [Percent Complete]@row < 0.6), "Red", IF(AND(Date@row - TODAY() < 2, [Percent Complete]@row < 0.75), "Yellow", "Green"))))

I am assuming that at 100 percent no mater what it is Green.

Also, be careful of your < or <= as it can make a big difference

What I do is

1. If it is 100% then Green no matter of date is in the past..
2. If it is Overdue then Red, no matter what the %..
3. Then Check for the percentage complete is less than 60% with three days left until due I would like it red (AND CASE)
4. Then Check for the percentage complete is less than 75% with two days left until due I would like it yellow (AND CASE)
5. Finally, all the rest is Green

Brent C. Wilson, P.Eng, PMP, Prince2

Facilityy Professional Services Inc.

http://www.facilityy.com

• I tried the formula and it did not work... I tried changing the word "Percentage" to "%". and added End to End date to identify the row.. It still failed,,

• ✭✭✭✭✭✭

I hope you're well and safe!

Can you share the formula you tried and maybe a screenshot of the sheet?

I hope that helps!

Be safe and have a fantastic weekend!

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, Awesome, 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:[email protected] | P: +46 (0) - 72 - 510 99 35

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

• edited 06/17/22

=IF([% Complete]@row = 1,"Green", IF(End Date@row < TODAY(), "RED", IF(AND(End Date@row - TODAY() < 3,[% Complete]@row < 0.6),"Red", IF(AND(End Date@row - TODAY() < 2,[% Complete]@row < 0.75),"Yellow", "Green"))))

You have a great weekend

• ✭✭✭✭✭✭

Try something like this.

=IF([% Complete]@row = 1,"Green", IF(End Date]@row < TODAY(), "RED", IF(AND(End Date]@row - TODAY() < 3,[% Complete]@row < 0.6),"Red", IF(AND(End Date]@row - TODAY() < 2,[% Complete]@row < 0.75),"Yellow", "Green")

Did that work?

Remember! Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up/Awesome 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:[email protected] | P: +46 (0) - 72 - 510 99 35

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

• Unfortunately it did not... Not sure why...

• ✭✭✭✭✭✭

Strange!

I'd be happy to take a quick look.

Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, [email protected])

SMARTSHEET EXPERT CONSULTANT & PARTNER

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

W: www.workbold.com | E:[email protected] | P: +46 (0) - 72 - 510 99 35

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

• I just shared it

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!