Melany said:
I'm sure there is a simple solution, but I'm overlooking
it. I need to add 35 months to a date (not today() ) and
get the new date. If my date in cell A1 is 21 Oct 98, in
A2 I need the sum of A1 + 35 months.
The simple answer is
=DATE(YEAR(A1),MONTH(A1)+35,DAY(A1))
With this formula:
21 Oct 98 ==> 21 Sep 01
30 Oct 98 ==> 30 Sep 01
However, the length of a month varies. If the resulting date doesn't exist
(e.g. 31 Sep or 30 Feb), you get an 'equivalent' date early in the next
month. So:
31 Oct 98 ==> 1 Oct 01
30 Mar 98 ==> 2 Mar 01
If you want to restrict the date to the last day of the month in such
circumstances, use this array-formula (entered with CTRL+SHIFT+ENTER rather
than just ENTER):
=MIN(DATE(YEAR(A1),MONTH(A1)+1+{1,0},DAY(A1)*{0,1}))
With this formula:
31 Oct 98 ==> 30 Sep 01
30 Mar 98 ==> 28 Feb 01