Formula return blank result
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.
Comments
-
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.
-
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.
-
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, andree@getdone.se)
Hope that helps!
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
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.
-
@Andree. Good catch!
-
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.
-
Haha. A picture speaks a thousand words. Thanks!
-
Hehe!
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
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!