FormulaCraft

How to calculate age from a date of birth in Excel and Google Sheets

Topic:Date arithmetic
Excel & Google Sheets
=DATEDIF(A2, TODAY(), "Y")

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. 1Put the birth date in a cell, e.g. A2, as a real date.
  2. 2Enter =DATEDIF(A2, TODAY(), "Y") to get completed years.
  3. 3The age updates automatically each day because TODAY() is always current.

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 does DATEDIF give an error?

Usually the start cell holds text rather than a real date, or the dates are reversed. Confirm A2 is a date and earlier than today.

More on Date arithmetic

See all →

Formulas used

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

Last reviewed: