Help with Health Column
Hello,
I need help creating a formula for the health column. Here is what im trying to do:
If due date is 2 days or more away: Green
=IF([Due Date]@row > TODAY(1), "Green")
If due date is day before or day of: Yellow
=IF(OR([Due Date]@row =TODAY(), [Due Date]@row = TODAY(1)), "Yellow")
If due date is past due: Red
=IF([Due Date]@row < TODAY(), "Red")
If check box is checked: Blue
=IF(Complete@row = 1, "Blue")
This is my formula when using Green, Yellow, and Red:
=IF(OR([Due Date]@row = TODAY(), [Due Date]@row = TODAY(1)), "Yellow", IF([Due Date]@row > TODAY(1), "Green", IF([Due Date]@row < TODAY(), "Red")))
But, I can't seem to figure it out when I try to add Blue.
Any help would be greatly appreciated!
-JC
Best Answers
-
Hi JC,
Try the following formula:
=IF(Complete@row = 1, "Blue", IF([Due Date]@row > TODAY(1), "Green", IF(OR([Due Date]@row = TODAY(), [Due Date]@row = TODAY(1)), "Yellow", IF([Due Date]@row < TODAY(), "Red"))))
I added the Check box condition to the front so that it would override all other conditions. Hope this helps
-ZM
-
Hi Zachary,
Your formula worked perfectly.
Thank you very much!
-JC
Answers
-
Hi JC,
Try the following formula:
=IF(Complete@row = 1, "Blue", IF([Due Date]@row > TODAY(1), "Green", IF(OR([Due Date]@row = TODAY(), [Due Date]@row = TODAY(1)), "Yellow", IF([Due Date]@row < TODAY(), "Red"))))
I added the Check box condition to the front so that it would override all other conditions. Hope this helps
-ZM
-
Hi Zachary,
Your formula worked perfectly.
Thank you very much!
-JC
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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!