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
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 466 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 64 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!