If statement formula not working
Could someone please have a look at the formula and let me know, where my mistake is? I get an "unparseable" error.
Each argument by itself works!
Thanks for any input~
=IF([Start date 1]@row > TODAY(), "Gray"), IF(Status@row = "Completed", "Green"),IF(AND(Status@row = "In Progress", [Finish Date 1]@row >= TODAY(10)), "Green"), IF(AND(Status@row = "In Progress", [Finish Date 1]@row < TODAY(10), [Finish Date 1]@row >= TODAY(5)), "Yellow"), IF(AND(Status@row = "In Progress", [Finish Date 1]@row <= TODAY(5)), "Red"), IF(AND(Status@row = "Not Started", [Start date 1]@row <= TODAY()), "Red")
Best Answer
-
Hi, Ute.
You need to move the closing parenthesis that you have after each IF statement to the end of the complete statement.
=IF([Start date 1]@row > TODAY(), "Gray", IF(Status@row = "Completed", "Green", IF(AND(Status@row = "In Progress", [Finish Date 1]@row >= TODAY(10)), "Green", IF(AND(Status@row = "In Progress", [Finish Date 1]@row < TODAY(10), [Finish Date 1]@row >= TODAY(5)), "Yellow", IF(AND(Status@row = "In Progress", [Finish Date 1]@row <= TODAY(5)), "Red", IF(AND(Status@row = "Not Started", [Start date 1]@row <= TODAY()), "Red"))))))
Answers
-
Hi, Ute.
You need to move the closing parenthesis that you have after each IF statement to the end of the complete statement.
=IF([Start date 1]@row > TODAY(), "Gray", IF(Status@row = "Completed", "Green", IF(AND(Status@row = "In Progress", [Finish Date 1]@row >= TODAY(10)), "Green", IF(AND(Status@row = "In Progress", [Finish Date 1]@row < TODAY(10), [Finish Date 1]@row >= TODAY(5)), "Yellow", IF(AND(Status@row = "In Progress", [Finish Date 1]@row <= TODAY(5)), "Red", IF(AND(Status@row = "Not Started", [Start date 1]@row <= TODAY()), "Red"))))))
-
Thank you so much Teresa! This worked.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 62 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!