Multiple IF/AND Formulas - Need Nesting Help

Options

I am in need of some assistance with a formula.

Here is a snap shot of the sheet I am working with:

Formula Example 1.png


I am trying to create a formula for the Activity Health Status field that drives the RYG ball.Β 

I want it to do the following:

Blue

Tasks that show status of β€œComplete”


Red

Tasks that show status of β€œIn Progress” and finish date is within the next 2 days and % Complete is less than 50%

Tasks that show status of β€œIn Progress” and finish date is in the past

Tasks that show status of β€œNot Started” and the start date is in the past

Tasks that show status of β€œNot Started” and the finish date is in the past


Yellow

Tasks that show status of β€œIn Progress” and finish date is within the next 4 days and % Complete is less than 50%


Green

Tasks that show a status, start and finish date and % complete but do not meet the criteria above


Error

If there is an error (start/finish dates, % complete, or status fields are blank etc) – No color appears



I have tried myself to come up with an IF formula; however, my nesting skills are not that great so it always comes up as UNPARISHABLE.Β I have reviewed info on the IF, IFERROR, NETWORKDAYS, AND/OR etc but cannot figure it out.


This is something needed ASAP.Β Can you assist?


I have gotten this far with the formulas (I think these are correct individually); however, I do not know how to nest them together:


Blue

1. Tasks that show status of β€œComplete”

=IF([% Complete]@row=1, "Blue")


Red

2. Tasks that show status of β€œIn Progress” and finish date is in the past

=IF(AND(Status@row = "In Progress", TODAY() > [Finish Date]@row), "Red", "")


3. Tasks that show status of β€œNot Started” and the start date is in the past

=IF(AND(Status@row = "Not Started", TODAY() > [Start Date]@row), "Red", "")


4. Tasks that show status of β€œNot Started” and the finish date is in the past

=IF(AND(Status@row = "Not Started", TODAY() > [Finish Date]@row), "Red", "")


5. Tasks that show status of β€œIn Progress” and finish date is within the next 2 days and % Complete is less than 50%

=IF(AND([Status]@row ="In Progress", (NETWORKDAYS(TODAY(), [Finish Date]@row) <3), [% Complete]@row <50), "Red", "")


Yellow

6. Tasks that show status of β€œIn Progress” and finish date is within the next 4 days and % Complete is less than 50%

=IF(AND([Status]@row ="In Progress", (NETWORKDAYS(TODAY(), [Finish Date]@row) <5), [% Complete]@row <50), "Yellow", "")


Green

Tasks that show a status, start and finish date and % complete but do not meet the criteria above

Put β€œGreen” at the end of the formula?


Error/If Blanks

If there is an error (start/finish dates, % complete, or status fields are blank etc) – No color appears

Put IFERROR and β€œβ€ at the end of the formula?Β 



Any assistance would be greatly appreciated!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!