What is wrong with this formula?
Hi,
Could one of you please tell me what is wrong with this formula:
=IF([% Complete]@row = 100%, "Blue", IF([End Date]@row <= TODAY, "Red", IF([End Date]@row < TODAY(5), "Yellow", "Green")))
I keep getting an #UNPARSEABLE error.
Best Answer
-
You need open and close parenthesis after the first TODAY function.
=IF([% Complete]@row = 100%, "Blue", IF([End Date]@row <= TODAY(), "Red", IF([End Date]@row < TODAY(5), "Yellow", "Green")))
If your [% Complete] column is actually set up to be a percentage, then you will also want to change your criteria there. Percentages in Smartsheet are calculates as a percentage of 1.
So 100% = 1, 50% = .5, etc., etc.
=IF([% Complete]@row = 1, "Blue", IF([End Date]@row <= TODAY(), "Red", IF([End Date]@row < TODAY(5), "Yellow", "Green")))
Answers
-
You need open and close parenthesis after the first TODAY function.
=IF([% Complete]@row = 100%, "Blue", IF([End Date]@row <= TODAY(), "Red", IF([End Date]@row < TODAY(5), "Yellow", "Green")))
If your [% Complete] column is actually set up to be a percentage, then you will also want to change your criteria there. Percentages in Smartsheet are calculates as a percentage of 1.
So 100% = 1, 50% = .5, etc., etc.
=IF([% Complete]@row = 1, "Blue", IF([End Date]@row <= TODAY(), "Red", IF([End Date]@row < TODAY(5), "Yellow", "Green")))
-
Thank you Paul. You addressed both of my errors. Super helpful. Worked as soon as I fixed these two issues.
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!