FORMULA - Trying to set a Status based on Date and %Complete
I'm trying to set the RYG status of a task based on End Date and % Complete of the task. I've put a formula in place using =IF(AND(... but I keep getting the error "# INCOMPLETE ARGUMENT SET"
Below is the formula, can anyone tell me what I'm doing wrong or missing, please....
=IF(AND([End Date]19 > TODAY(+10), [% Complete]19 < "100%", "Green", IF(AND([End Date]19 < TODAY(+5), [% Complete]19 < "100%", "Yellow", IF(AND([End Date]19 <= TODAY(), [% Complete]19 < "100%", "Red"))))))
Comments
-
There could actually be a couple issues at work. One, you have to close the And statements before moving on with the then results. And two, It might be that smartsheet percentages are actually decimals in the back end.
Try this first:
=IF(AND([End Date]19 > TODAY(+10), [% Complete]19 < "100%"), "Green", IF(AND([End Date]19 < TODAY(+5), [% Complete]19 < "100%"), "Yellow", IF(AND([End Date]19 <= TODAY(), [% Complete]19 < "100%"), "Red")))
If that doesn't work accurately, try this.
=IF(AND([End Date]19 > TODAY(+10), [% Complete]19 < 1), "Green", IF(AND([End Date]19 < TODAY(+5), [% Complete]19 < 1), "Yellow", IF(AND([End Date]19 <= TODAY(), [% Complete]19 < 1), "Red")))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 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!