spectraflame
Well-known Member
- Joined
- Dec 18, 2002
- Messages
- 830
- Office Version
- 365
- Platform
- Windows
I need to calculate age based on DOB and display it in Years, Months, Day. I am using this formula: =IF(DATEDIF(D2,NOW(),"Y")>0,DATEDIF(D2,NOW(),"Y")& " YEARS","")&IF(AND(DATEDIF(D2,NOW(),"Y")>0,DATEDIF(D2,NOW(),"YM")>0),", ","")&IF(DATEDIF(D2,NOW(),"YM")>0,DATEDIF(D2,NOW(),"YM")&" MONTHS","")&IF(AND(DATEDIF(D2,NOW(),"YM")>0,DATEDIF(D2,NOW(),"MD")>0),", ","")&IF(DATEDIF(D2,NOW(),"MD")>0,DATEDIF(D2,NOW(),"MD")&" DAYS","")
I am also using the same formula to calculate the years of service an employee has. Again, this works as desired.
Our retirement eligibility is based on age + years of service. HR would like to combine the data to show retirement status in years, months, and days.
I am just not able to figure out a simple method. Any suggestions?
I am also using the same formula to calculate the years of service an employee has. Again, this works as desired.
Our retirement eligibility is based on age + years of service. HR would like to combine the data to show retirement status in years, months, and days.
I am just not able to figure out a simple method. Any suggestions?