Adding a Specified Number of Months to a Date

Problem:

Column B contains numbers of months which are to be added to the corresponding dates shown in column A.
We want to calculate the appropriate cumulative dates.

Solution 1:

Use the DATE, YEAR, MONTH, MIN, and DAY functions as shown in the following formula:
=DATE(YEAR(A2),MONTH(A2)+B2,MIN(DAY(A2),DAY(DATE(YEAR(A2),MONTH(A2)+B2+1,0))))

Solution 2:

Use the EDATE function as shown in the following formula:
=EDATE(A2,B2)

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube