How to Convert a Birthdate to Age in Excel

There are two ways to “convert a birthdate to age in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above with a tool to test it; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: put the birth date in A2 and use =DATEDIF(A2,TODAY(),"Y") to return the completed age in whole years.

ƒxAge CalculatorLive
Age
35

35 years · 6 months · 17 days

Next birthday in 165 days · 12,984 days lived

=DATEDIF(A2,B2,"y")
=DATEDIF(A2,TODAY(),"Y")
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

DATEDIF measures the gap between a start date and an end date in the unit you ask for. With the birth date as the start, TODAY() as the end and "Y" as the unit, it returns the number of full years lived — the person's current age. Swap the unit to "M" for whole months or "D" for total days. DATEDIF is hidden from the function list but works in every Excel version and in Google Sheets. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “convert a birthdate to age in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a data step that keeps your analysis trustworthy into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

A2 holds the birth date 1990-06-15. In B2 type =DATEDIF(A2,TODAY(),"Y"). With today around 2026 the result is 35, because the person has completed 35 birthdays. You reach for DATEDIF whenever a report needs a live age from a birth date — staff records, customer profiles, eligibility checks — that recalculates as time passes. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Here is the takeaway for “convert a birthdate to age in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

Common mistakes

  • Formatting the result as a date, so 35 shows as a date instead of a number.
  • Using "Y" when you actually wanted months or days.
  • Putting the dates in the wrong order — start must be earlier than end or DATEDIF errors.
  • Hard-coding today's date instead of TODAY(), so the age never updates.

Frequently asked questions

Why is DATEDIF not in the function list?

It is undocumented but still works when you type it manually.

How do I get age in months or days?

Replace "Y" with "M" for whole months or "D" for total days.

Is there an alternative?

Yes. =YEARFRAC(A2,TODAY()) gives a decimal age you can round down with INT.

Other ways people ask this

People reach this page typing “how to convert birthdate to age in excel” and “convert birthdate to age in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.

Why do people search for this in so many different ways?

Because the same task has many names. “how to convert birthdate to age in excel”, “convert birthdate to age in excel” all point at the one operation explained on this page, which is why they all lead here.