Add x months to a date
Hi All,
I have being googling for an hour and haven't figured it out. I want to add a number of months to the date in column [inspection date]. The amount i will specify in column [inspection period]. That is to say that i end up with a date 6 months on from the inspection date. I can then create an automation that will tell me that these parts need inspecting in the next week.
Best Answer
-
That works a treat. One day i will learn how to do all these formulas!!
Answers
-
According to your screenshot, you could use this formula in the next inspection date.
=IF((MONTH([Inspection Date]@row) + VALUE(LEFT([Inspection Interval]@row, FIND(" ", [Inspection Interval]@row) - 1)))>12, DATE(YEAR([Inspection Date]@row) +1, MOD(MONTH([Inspection Date]@row) + VALUE(LEFT([Inspection Interval]@row, FIND(" ", [Inspection Interval]@row) - 1)),12), DAY([Inspection Date]@row)),DATE(YEAR([Inspection Date]@row), MONTH([Inspection Date]@row) + VALUE(LEFT([Inspection Interval]@row, FIND(" ", [Inspection Interval]@row) - 1)), DAY([Inspection Date]@row)))
Should be good, but only works if your inspection interval is in months :)
Hope it helped!
-
That works a treat. One day i will learn how to do all these formulas!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 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!