RYGB Due Date/Completed
Hello all,
Looking to create a formula using RYGB based on Due Date/Completed.
Red - Past due date and not completed
Yellow - Within 2 days of due date and not completed
Green - Date Completed ON/OR prior to Due Date
Blue - Date Completed Past Due Date
Best Answers
-
Hi Sean, this should work:
=IF(AND([Due Date]@row < TODAY(), ISBLANK([Date Completed]@row)), "Red", IF(AND([Due Date]@row <= TODAY(2), ISBLANK([Date Completed]@row)), "Yellow", IF([Date Completed]@row <= [Due Date]@row, "Green", IF([Date Completed]@row > [Due Date]@row, "Blue"))))
-MS
-
Thank you for the help to the both of you!
Mark, yours was working, but the RYGB column is showing a red mark when there is no date filled in at all. What would need to be added to nothing appears if the Due Date is empty?
Answers
-
Give this a try
=IF(ISBLANK([Complete Date]@row), IF([Due Date]@row > TODAY(), "Red", IF([Due Date]@row >= TODAY() - 2, "Yellow", "Green")), IF([Complete Date]@row > [Due Date]@row, "Blue", "Green"))
-
Hi Sean, this should work:
=IF(AND([Due Date]@row < TODAY(), ISBLANK([Date Completed]@row)), "Red", IF(AND([Due Date]@row <= TODAY(2), ISBLANK([Date Completed]@row)), "Yellow", IF([Date Completed]@row <= [Due Date]@row, "Green", IF([Date Completed]@row > [Due Date]@row, "Blue"))))
-MS
-
Thank you for the help to the both of you!
Mark, yours was working, but the RYGB column is showing a red mark when there is no date filled in at all. What would need to be added to nothing appears if the Due Date is empty?
-
Figured it out. Just needed to add the following into your formula Mark.
=IF(ISBLANK([Due Date]@row), "", IF(AND([Due Date]@row < TODAY(), ISBLANK([Date Completed]@row)), "Red", IF(AND([Due Date]@row <= TODAY(2), ISBLANK([Date Completed]@row)), "Yellow", IF([Date Completed]@row <= [Due Date]@row, "Green", IF([Date Completed]@row > [Due Date]@row, "Blue", IF(ISBLANK([Due Date]@row), ""))))))
Thank you again for your help! Mich appreciated!
-
Whoops! Thought I had all the conditions covered, but missed that obvious one -- good catch, Sean!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!