Retirement date - formula

satya (Executive Excise) (1839 Points)

02 November 2012  

 

Dear Sir,

 

I want retirement date formula, I am using the below formula.

formula

=DATE(YEAR(A1)+B1,MONTH(A1),DAY(A1))

Actually we need when the result date is 1st, the month of retirement should be last day of before month.

If retirement day is 2nd or more , the date of retirement should be end of the current month.

Example

1:

1-May-71

   58   

     1-May-2029

 

    Requirement is 31-Apr-2029.

 

2: 10-May-71      58     10-May-2029

   

Requirement is 31-May-2029.