#Unparseable Error on Nested If And Statement
I have two columns I'm trying to reference in my formula, a check box column (Done) and a date column (Complete Date). Depending on the data in those two columns, I'd like a third symbol column update to Green, Yellow or Blue.
The desired outcome is
If Done is TRUE, then Green
If Done is NOT TRUE, and Complete Date is equal to, five days in future or five days in the past from TODAY, then Yellow
IF Done is NOT TRUE, and Complete Date is more greater than 5 days in past from TODAY, then Blue.
In the formula below, DONE is my check mark, and Complete Date is the date I'm referencing.
=IF(Done1 = 1, "Green", IF((AND(([Complete Date]1 - TODAY())>= -5) ,(([Complete Date]1 - TODAY() )<= 5)), "Yellow", "Blue"))
I am getting an Unparseable error when I attempt to enter this formula in Smart Sheets.
Does anyone immediately see a problem with my formula?
Thank you,
Tracy
Answers
-
I think I got it, I guess it was a spacing issue. Ugh!
=IF(Done1 = 1, "Green", IF(AND([Complete Date]1 - TODAY() >= -5, [Complete Date]1 - TODAY() <= 5), "Yellow", IF([Complete Date]1 - TODAY() <= -6, "Red", "Blue")))
-
Hi Tracy,
Glad you got it working!
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Please help the Community by marking your post with the accepted answer. It will make it easier for others to find a solution or help to answer!
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.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!