Hi Eileen!
Here's a general formula for adding or subtracting months from a given
date:
Substitute A1 and $A$1 by the cell reference that contains your base
date.
If you want a "general" solution that works for creating any series of
evenly spaced months:
=DATE(YEAR(A1),MONTH(A1)+AddMons,MIN(DAY($A$1),DAY(DATE(YEAR(A1),MONTH
(A1)+AddMons+1,0))))
Substitute A1 and $A$1 by the cell reference that contains your base
date.
Where AddMons is the number of months to be added or subtracted
And here's an alternative that does the same by Peter Dorigo:
=MIN(DATE(YEAR(A1),MONTH(A1)+ AddMons +{1,0},DAY($A$1)*{0,1}))
Where the day of the month >=29 the algorithm used is to use the base
date day of month where it exists and to use the last day of the month
if it does not.
A third alternative for creating a series of dates is:
=EDATE($A$1,(ROW(A2)-ROW($A$1))*AddMons) '[Adds number specified in
named cell AddMons]
If our requirement is for dates to be across the page, then substitute
ROW by COLUMN. In most cases I would not use $A$1 but would use a
named cell e.g. "BaseDate" and A2 would be replaced by the address of
the cell adjacent to "BaseDate" and is the second in the series of
dates.
Whatever method is used, it is essential to lock the day to the base
date. Otherwise you can get some unusual series.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.