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
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!