FormulaCraft

How to calculate age in years, months, and days in Excel and Google Sheets

Excel & Google Sheets
=DATEDIF(A2,TODAY(),"Y")&" yrs "&DATEDIF(A2,TODAY(),"YM")&" mo "&DATEDIF(A2,TODAY(),"MD")&" days"

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter the birthdate in column A (A2).
  2. 2In B2 enter: =DATEDIF(A2,TODAY(),"Y")&" yrs "&DATEDIF(A2,TODAY(),"YM")&" mo "&DATEDIF(A2,TODAY(),"MD")&" days"
  3. 3"Y" returns complete years, "YM" returns remaining months after full years, "MD" returns remaining days after full months.
  4. 4Copy down for additional rows.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why doesn't DATEDIF appear in Excel's formula suggestions?

DATEDIF is a legacy Lotus 1-2-3 function kept for compatibility. It works fine but is not listed in the autocomplete. Type it manually.

Can I use a fixed end date instead of TODAY()?

Yes — replace TODAY() with a cell reference or a date like DATE(2024,12,31) to calculate age at a specific point in time.

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: