vava said:
To prepare an employee payroll, I am putting the date of birth of a person/employee in one cell. I want MS Excel to give me the dte of retirement of the employee in the next cell. (The date of retirement is the last date of the month in which he attains 55 years of age. What formula should I use?
Your problem is simply solved using the "=DATE" function in excel.
Let me assume you have input your employee X's birth date in cell A1. I'll assume you have used the format YEAR,MONTH,DATE.
To get the retirement date in any cell, try this formula -
=DATE(YEAR(A1)+55,MONTH(A1),DAY(A1))
I'm amazed at all the cool stuff that can be done with excel. Everyday I keep discovering new excel formulae and tricks from our lovely secretaries who also happen to be excel experts.
Cheers,
Keith
Edit: BTW, formatting of the date does not matter. You can set any format of date for both the cells and they don't even have to be similar.