IF / OR Formula help (#Invalid Column Value)

Hi everyone,
I am trying to figure out a formula, that will show the following result:
- If the completion date is before the due date, the green circle appears; or
- If the completion date is after the due date, the yellowΒ circle appears; or
- If the completion date is blank, the red circle appears.
The formula I have is as follows:
=IF(OR([Completion date for Annual KPIs]2 < [Due date]2), "Green", "Yellow") = IF(ISBLANK([Completion date for Annual KPIs]3), "Red")
the two formulas work fine when they're separated, but when I combine them it is telling me that there is an "Invalid Column Value".
I am very new to formulas, and would appreciate any advice!
Β
Comments
-
Hi Tammy,
Try this.
=IF([Completion date for Annual KPIs]@row < [Due date]@row; "Green"; IF([Completion date for Annual KPIs]@row > [Due date]@row; "Yellow"; "Red"))Β Β Β
The same version but with the below changes for your and others convenience.Β Β
=IF([Completion date for Annual KPIs]@row < [Due date]@row, "Green", IF([Completion date for Annual KPIs]@row > [Due date]@row, "Yellow", "Red"))
Depending on your country youβll need to exchange the comma to a period and the semi-colon to a comma.
I hope this helps you!
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.
-
I think that this will work for you. Β The first IF looks to see if the KPI date is after the Due date. Β If it is, its "Yellow", ELSE we do the second IF. Β The Second IF looks to see if there is a KPI date. Β If there isn't it's "RED", ELSE it's "GREEN".
=IF([Completion date for Annual KPIs]2 > [Due date]2, "Yellow", IF(ISBLANK([Completion date for Annual KPIs]2), "Red", "Green"))
-
Thank you both for your helpful input!
It's working now
-
Thank you, this is perfect!
-
Great!
Happy to help!
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.
-
Hi, thanks to the contributors!
Can anyone explain why invalid column value shows up when I'm comparing dates?Β
Thanks! -
Hi,
Can you share a screenshot of theΒ sheetΒ with the error message?
That would make it easier to help!
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.
-
When I enter =1<2 I get an error. So weird!
-
It's because you're not referencing any column(s).
What do you want to do?
Best,
AndrΓ©e
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
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!