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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
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!