To increment most dates (e.g. January 12, 2000; February 12, 2000; March 12, 2000; etc.)
- Input the first date in the series in a cell, for example cell A1
- In the cell underneath it (i.e. cell B1) input the following formula referencing the cell above: =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
- Click on the cell with the formula and then drag the bottom left corner handle down to fill the column with monthly incremented dates
=DATE(YEAR(A1),MONTH(A1)+2,0)
To better understanding what is going on:
=DATE(YEAR(A1),MONTH(A1),0) ends up referring to the last day of the previous month
=DATE(YEAR(A1),MONTH(A1)+1,0) ends up referring to the last day of the current month
=DATE(YEAR(A1),MONTH(A1)+2,0) ends up referring to the last day of the next month
No comments:
Post a Comment