Calculating a date up to 60 months in future
I need to calculate a future date from a past date + a number of months. I have a working formula but it breaks after 14 MONTHS . I think it creates some sort of circular reference error after it passes the current MONTH in the following YEAR but am so far unable to correct the issue. I think i need to nest some additional IF statement in there for ">" 24, 36, 48 & 60 months of Shelf Life.
=IF(MONTH(CurrCal@row) + [ShelfLife (months)]@row > 12, DATE(YEAR(CurrCal@row) + 1, MONTH(CurrCal@row) - (12 - [ShelfLife (months)]@row), DAY(CurrCal@row)), DATE(YEAR(CurrCal@row), MONTH(CurrCal@row) + [ShelfLife (months)]@row, DAY(CurrCal@row)))
Advice and help appreciated.
Best Answer
-
Could you convert the ShelfLife (months) into days and then just add the days to CurrCal, without the need for IFs?
Answers
-
Could you convert the ShelfLife (months) into days and then just add the days to CurrCal, without the need for IFs?
-
Thanks for the suggestion KPH! I added a helper column to convert Months to Days (30.4/Month) which gives a minor variance on some dates, but works perfectly for my needs. A very simple solution, bravo.
-
Wonderful! Glad the easy option was good enough.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 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!