Formula return blank result

KLKL
edited 12/09/19 in Formulas and Functions
07/30/19 Edited 12/09/19

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

  • Mike WildayMike Wilday ✭✭✭✭✭

    I believe the primary issue was you were closing an IF statement a little too early by having two closing parenthesis in the middle of your statement. 

    Try this one: 

    =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", ""))))))

  • Thanks for this input. Unfortunately, this result did not create the correct output. 

  • Mike WildayMike Wilday ✭✭✭✭✭

    What are you seeing? Can you tell us what you are getting, provide a screenshot with the data if not sensitive so we can better help you? It might be that we need to rearrange things. 

  • Andrée StaråAndrée Starå ✭✭✭✭✭

    Hi,

    At a glance, it seems like you're missing some true statements for the bold ones below + there were as Mike noticed one-to-many parenthesis. What do you want show if the bold ones below are true?

    =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", "")))))

    Can you describe your process in more detail and maybe share 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])

    Hope that helps!

    Have a fantastic weekend!

    Best,

    Andrée Starå

    Workflow Consultant @ Get Done Consulting

    SMARTSHEET PARTNER & CONSULTANT / EXPERT

    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 about help with Smartsheet, integrations, general workflow advice, or something else entirely.

  • Mike WildayMike Wilday ✭✭✭✭✭

    @Andree. Good catch! 

  • Andrée StaråAndrée Starå ✭✭✭✭✭

    @Mike

    I know you love GIFs so

    ty

     

    SMARTSHEET PARTNER & CONSULTANT / EXPERT

    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 about help with Smartsheet, integrations, general workflow advice, or something else entirely.

  • Mike WildayMike Wilday ✭✭✭✭✭

    Haha. A picture speaks a thousand words. Thanks! 

  • Andrée StaråAndrée Starå ✭✭✭✭✭

    Hehe!

    exactly

    SMARTSHEET PARTNER & CONSULTANT / EXPERT

    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 about help with Smartsheet, integrations, general workflow advice, or something else entirely.

Sign In or Register to comment.