In Excel: put the birth date in A2 and use =DATEDIF(A2,TODAY(),"Y") to return the completed age in whole years.
35 years · 6 months · 17 days
Next birthday in 165 days · 12,984 days lived
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. For “calculate age between two dates in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. 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 is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.
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. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.
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. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. The short version of “calculate age between two dates in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
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
DATEDIFerrors. - 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.