Calculating Age On Leaving Employment

Phil M

New Member
Joined
Nov 15, 2004
Messages
13
Hi, I want to show the age of our leavers when they left - by subtracting their date of birth from their last day of service. The 2 cells are formatted as UK dates and I want to show the result as their age in years when they left. Years and months would be nice, but years only will be enough.

Can anyone help please?

Thanks in advance.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Phil M

New Member
Joined
Nov 15, 2004
Messages
13
It sure does! Thanks ever so much. :) I'll keep the link too for future reference. (y)
 

rs2k

Well-known Member
Joined
Aug 15, 2004
Messages
1,413
Put your two dates in A1 and B1 and the formula in C1 (or change to suit your range)

=DATEDIF(A1,B1,"y")

will give you the difference in years.
Change the y to d and it will give you the result in days
Change the y to m and it will give you the result in months

Colin
 

Phil M

New Member
Joined
Nov 15, 2004
Messages
13

ADVERTISEMENT

Thanks, I can see lots of uses for this. :)
 

rs2k

Well-known Member
Joined
Aug 15, 2004
Messages
1,413
Phil, have a look at "Index to 485 articles" at the bottom of the page, theres loads of great stuff there.

Colin
 

Phil M

New Member
Joined
Nov 15, 2004
Messages
13
You're not kidding! :) Hadn't spotted either before - my, I am going to be busy... Thanks both for the pointers. :)
 

Forum statistics

Threads
1,147,690
Messages
5,742,638
Members
423,746
Latest member
Joaogomes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top