Calculate age from a date of birth
Get someone's age in whole years, as of today.
The formula
Excel and Google Sheets
=DATEDIF(A2, TODAY(), "Y")How it works
A2Date of birth.
TODAY()Today's date, so the age updates automatically.
"Y"Count complete years. Use "M" for months or "YM" for the months left over after the years.
Example
| A: Born | B: Result (on 2026-11-11) |
|---|---|
| 1990-05-20 | 36 |
| 2000-12-01 | 25 |
Tips
- DATEDIF works in Excel even though it is not listed in the function menu.