RYGG formula does not work the same for all rows
Hi Smartsheeter's
Please help me figure out what the problem is. I am using the formula to show row's Status:
= IF (OR ([% Complete] @row = 1, [Start date] @row> TODAY ()), "Green", IF (Status @ row = "Not started", "Gray", IF (AND ([ Due date] @row> TODAY (), [% Complete] @row <0), "Gray", IF (Status @ row = "At risk", "Red", IF (AND ([Due date] @row = TODAY (), [% Complete] @row <0.5), "Red", IF ([% Complete] @row <0.75, "Yellow", IF (AND ([Due date] @row = TODAY (7), [ % Complete] @row <0.25), "Red", IF ([% Complete] @row <0.5, "Yellow", "Green"))))))
Lines 20-22 and 25-31 (Not Started) still do not respond to changes in the Status and % Complete columns. File attached
Is there a mistake in the formula?
Thanks in advance
Best Answer
-
It appears rows 20-22 and 25-31 are green due to the OR statement in your first term
IF( [% Complete] @row = 1 OR Start Date]@row>TODAY() then Green
If you want 'Not Started' to be the deciding factor, move the Gray condition to the first term in your IF statement
=IF(Status@row = "Not started", "Gray", IF(OR([% Complete]@row = 1, [Start date]@row > TODAY()), "Green", IF(AND([Due date]@row > TODAY(), [% Complete]@row < 0), "Gray", IF(Status@row = "At risk", "Red", IF(AND([Due date]@row = TODAY(), [% Complete]@row < 0.5), "Red", IF([% Complete]@row < 0.75, "Yellow", IF(AND([Due date]@row = TODAY(7), [% Complete]@row < 0.25), "Red", IF([% Complete]@row < 0.5, "Yellow", "Green"))))))))
Answers
-
It appears rows 20-22 and 25-31 are green due to the OR statement in your first term
IF( [% Complete] @row = 1 OR Start Date]@row>TODAY() then Green
If you want 'Not Started' to be the deciding factor, move the Gray condition to the first term in your IF statement
=IF(Status@row = "Not started", "Gray", IF(OR([% Complete]@row = 1, [Start date]@row > TODAY()), "Green", IF(AND([Due date]@row > TODAY(), [% Complete]@row < 0), "Gray", IF(Status@row = "At risk", "Red", IF(AND([Due date]@row = TODAY(), [% Complete]@row < 0.5), "Red", IF([% Complete]@row < 0.75, "Yellow", IF(AND([Due date]@row = TODAY(7), [% Complete]@row < 0.25), "Red", IF([% Complete]@row < 0.5, "Yellow", "Green"))))))))
-
Hi KDM,
Thanks a lot. It's working now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!