Symbol Formula using date and another field
I need to create a formula based on the following criteria:
1) Contract Type is...Lease....then the following needs to be assessed in the Target Completion Date column.
2) Target Completion Date is more than 70 days out "Green"
3) Target Completion Date is 20 days out or less "Yellow"
4) Target Completion Date is in the past "Red"
I was successful in building the formula based on the target completion date, but when I try to incorporate the Contract Type criteria I keep getting error messages. Here is my current formula.
=IF(ISDATE([Target Completion Date (SLA)]@row), IF([Target Completion Date (SLA)]@row <= TODAY(), "Red", IF([Target Completion Date (SLA)]@row < TODAY(20), "Yellow", "Green")))
Answers
-
Hi @D Gray
Try this:
=IF([Contract Type]@row = "Lease", IF([Target Completion Date (SLA)]@row <= TODAY(), "Red", IF([Target Completion Date (SLA)]@row < TODAY(20), "Yellow", "Green")))
This will be blank if the Contract Type is not "Lease", is that what you'd like? Also, is there a possibility that the Target Completion Date could be blank? We can add in that criteria near the beginning, too:
=IF([Contract Type]@row = "Lease", IF([Target Completion Date (SLA)]@row = "", "", IF([Target Completion Date (SLA)]@row <= TODAY(), "Red", IF([Target Completion Date (SLA)]@row < TODAY(20), "Yellow", "Green"))))
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 142 Industry Talk
- 473 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!