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
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!