Guide • No signup needed
Calculate Age in Excel: 3 Formulas That Work
Put the date of birth in A2. Then pick your formula. =DATEDIF(A2,TODAY(),"Y") gives exact years. =YEARFRAC(A2,TODAY(),1) gives a decimal like 36.33. And =INT((TODAY()-A2)/365.25) gives a rough answer in five seconds. The rest of this guide is worked examples and the three errors everyone hits the first time.
Frequently Asked Questions
Why doesn't DATEDIF appear in Excel's function list?
Microsoft never documented it, but it works in all modern Excel versions and Google Sheets. Type it manually; autocomplete may not suggest it.
Which formula is the most accurate?
DATEDIF with Y, YM and MD units. It counts real calendar units including leap days. YEARFRAC is precise as a decimal but less readable. The /365.25 shortcut can drift by a day near birthdays.
How do I calculate age as of a past date?
Replace TODAY() with that date: =DATEDIF(A2,"2026-01-01","Y"). Better, put the target date in a cell like B2 and use =DATEDIF(A2,B2,"Y").
Why do I get a #NUM! error?
The start date is after the end date. Check that the birth date comes first and is not in the future, and that Excel parsed it as a real date, not text.
Do these formulas work in Google Sheets?
Yes. DATEDIF, YEARFRAC and TODAY() all work in Google Sheets exactly as shown here.