Please give suitable formula to get my desired retirement date;
suppose person's DOB is 01-May-1971, then his retirement age is 58 years, his retirement date is 1-May-1971, actually in our company when his superannuation comes on 01 date, his superannuation date becomes before date i.e., 30-Apr-1971. if his superannuation is on 02-May-1971 means it should be extended to end of the year.
actually I am using DATE(YEAR(A1)+B1,MONTH(A1),DAY(A1)) formula to get his superannuation date, then I am using EOMONTH(IF(DAY(C1)=1,DATE(YEAR(C1),MONTH(C1)-1,DAY(C1)),DATE(YEAR(C1),MONTH(C1),DAY(C1))),0) this formula to less one day when his superannuation comes on 01st of the month.
Now you are all requested to give suitable formula to get like this;
person's DOB is 01-May-1971 superannuation comes on 01 date, his superannuation date becomes before date i.e., 30-Apr-2029. if his superannuation is on 02-May-2029 means it should be extended to end of the year. i.e., 31-Dec-2029.
not like that sir, if any employee DOB is 1st date of any of month, then his superannuation is jumps to previous month last day. otherwise means from 2nd onwards the said S.A to be extended to 31-Dec-Year.
not like that sir, if any employee DOB is 1st date of any of month, then his superannuation is jumps to previous month last day. otherwise means from 2nd onwards the said S.A to be extended to 31-Dec-Year.
pl do the needful.
Try this,
=IF(DAY(A1)=1,EDATE(A1,58*12)-1,DATE(YEAR(A1)+58,12,31)) where cell A1 contains your Date of Birth.
small correction required , i.e, when his DOB on 01-Jan-Year means his S.A date should be 1 day before, other all dates & months S.A should be moved to 31-dec-Year.
I have noticed one error;
if DOB 01-Oct-1956, it is giving 30-09-2014, actually it should be come 31-Dec-2014 as per our requirement.