How do I do a if / then formula for dates?
I'm using the following formula to figure out when warranties expire, [Start Up Date]@row+[Labor Warranty Days]@row. This formula works great to figure out when the warranty expires, but a certain customer has a longer warranty which is called out in a different column, how can I make a formula to show if the Labor Warranty's Days is blank, to use the Labor Warranty Days for Customer column? Or is it not possible, I didn't originally setup the SS, so I'm not sure why they have it in separate columns like that, just trying to improve it.
Answers
-
Hi @M. Wolf,
Is there a separate column listing the customer, or is it just list of the start up dates and then the labor/parts as above (normal/customer specific)?
If the latter, then you can do this like this:
Labor:
=IF([Labor Warranty for Customer]@row <> "", [Start Up Date]@row + [Labor Warranty for Customer]@row, [Start Up Date]@row + [Labor Warrant Days]@row)
Parts:
=IF([Labor Warranty for Customer]@row <> "", [Start Up Date]@row + [Labor Warranty for Customer]@row, [Start Up Date]@row + [Parts Warranty]@row)
Sample output (based on above data):
Hope this helps, but if I've misunderstood something or you've any problems/questions then just post! 🙂
-
That works, thank you!
One more question, is there a way to setup the cell to automatically turn red once the warranty expires?
-
You can do this with the conditional formatting which is this symbol on the bar:
A rule like this would colour expired labor warranty cells, for example:
As well as this, you could also set up filters to show only active warranties:
This would mean you don't have to look at any rows where the warranty no longer applies (and can remove it to see all data as required, such as for audit purposes).
-
@Nick Korna thank you so much for all your help!!
-
No problem at all, glad to have helped! 🙂
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!