finding age from dob without using datedif

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I watched many youtube video/googled it etc. All of them used DateDif() and the funny thing they all said the datedif() is a legacy function. Then I am wondering why they are using legacy function and why they do not trying to use something different, I am sure Excel team came with something to replace dateif() but I do not know what is it exactly. How you will calculate age from DOB? Thank you very much.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
DateDif is a carry over from LOTUS123. If you are insistent upon not using it then you could always subtract the DOB from Today() and divide by 365.25
 
Upvote 0
Thank you, I thought that function will not be supported in the future.. that is why I was wondering why they kept using it. Thank you again
 
Upvote 0
They may get rid of it one day, but that could happen with any function.
 
Upvote 0
Hi,

You can also use YEARFRAC:

Book3.xlsx
AB
1DOBAGE
212/25/196456
Sheet747
Cell Formulas
RangeFormula
B2B2=INT(YEARFRAC(A2,TODAY(),1))
 
Upvote 0

Forum statistics

Threads
1,224,755
Messages
6,180,776
Members
452,996
Latest member
nelsonsix66

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
Back
Top