Forum Discussion
Anel0510
Aug 31, 2020Copper Contributor
Age formula not calculating
Good day, I am a beginner Excel user and am trying to calculate age between 2 different dates where B2 contains the date of diagnosis of a disease and E2 contains the date of birth. The column with m...
SergeiBaklan
Aug 31, 2020Diamond Contributor
Double "f" is for the function in VBA, here is
=DATEDIF(E3,G3,"Y")
or
=YEARFRAC(G2,E2,1)
depend on what exactly you'd like to calculate.
Anel0510
Aug 31, 2020Copper Contributor
Hi Sergei, thanks for your reply! I have tried using both your suggested formulas (copy and pasted them), but I still get a message that there is an error (see attached file).
Any other suggestions?
- SergeiBaklanAug 31, 2020Diamond Contributor
Perhaps in your locale you shall use semicolons, not commas. Please check how it is in other formulas.
=DATEDIF(E3;G3;"Y")- Anel0510Aug 31, 2020Copper Contributor
Thank you SergeiBaklan, that seems to work!
- SergeiBaklanAug 31, 2020Diamond Contributor
Anel0510 , you are welcome