Formula return blank result

KL
KL
edited 12/09/19 in Formulas and Functions

I've attempted multiple times to create a function that result in Blue, Yellow, Green, Red health and it has been unsuccessful. 

Here are the results that I am aiming at: 

On Track > "Complete" "In Progress" = Green

Ahead > "Complete" = Green

Ahead > "In Progress" = Blue

At Risk > "Not Started" "In Progress" = Red

Behind > "In Progress" = Yellow

 

This is the recent function I attempted with blank result (highlighted) in the image.

=IF(AND([Health | Milestone]3 = "On Track", State3 = "Complete"), "Green", IF(AND([Health | Milestone]3 <> "On Track", TODAY() > [End Date]3), IF(AND([Health | Milestone]3 = "Ahead", State3 = "In Progress"), "Blue", IF(AND([Health | Milestone]3 <> "Ahead", TODAY() < [End Date]3)), IF(AND([Health | Milestone]3 = "At Risk", State3 = "In Progress"), "Red", IF(AND([Health | Milestone]3 = "Behind", State3 = "In Progress"), "Yellow", "")))))

 

Any suggestions will be appreciated. 

Thanks.

smartsheet blank_result.png

Comments

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!