Blog
Custom Print on Demand Apparel — Free Storefront for Your Business
Wild & Free Tools

Age Calculator in Excel — DATEDIF Formula vs Free Online Tool

Last updated: April 20267 min readCalculator Tools

Excel can calculate age using DATEDIF(birthday, TODAY(), "Y") — but the function is undocumented, has known bugs with month-end dates, and requires you to open a spreadsheet. For a single age calculation, a browser-based age calculator gives the same answer in 2 seconds.

Excel DATEDIF Formula — The Full Reference

FormulaReturnsExample (Born Mar 20, 1990)
=DATEDIF(A1, TODAY(), "Y")Full years36
=DATEDIF(A1, TODAY(), "M")Total months432
=DATEDIF(A1, TODAY(), "D")Total days13,164
=DATEDIF(A1, TODAY(), "YM")Months after years0
=DATEDIF(A1, TODAY(), "MD")Days after months15
=DATEDIF(A1, TODAY(), "YD")Days after years15

To combine into a single cell: =DATEDIF(A1,TODAY(),"Y")&" years, "&DATEDIF(A1,TODAY(),"YM")&" months, "&DATEDIF(A1,TODAY(),"MD")&" days"

The Problem with DATEDIF

DATEDIF is inherited from Lotus 1-2-3 (a 1983 spreadsheet program). Microsoft kept it for compatibility but never documented it in Excel help. Known issues:

Excel vs Online Calculator — When to Use Each

ScenarioExcelOnline CalculatorWinner
Single quick age lookup✗ Open Excel, type formula✓ Open page, enter birthdayOnline
Calculate ages for 500 employees✓ Formula applies to entire column✗ One at a timeExcel
Need years + months + days~Works but DATEDIF has bugs✓ Handles edge cases correctlyOnline
Age on a specific date (not today)✓ Replace TODAY() with any date✓ Built-in target date fieldTie
No Excel/Sheets license✗ Need software✓ Works in any browserOnline
Audit trail for HR/legal✓ Formula in spreadsheet is auditable✗ No saved recordExcel
Phone or tablet✗ Mobile Excel is clunky✓ Works on any deviceOnline

For a single age calculation, the browser tool is faster than opening Excel.

Open Age Calculator

Google Sheets Alternative

Google Sheets supports the same DATEDIF syntax and is free. If you work in Google Workspace, Sheets is often the better choice over Excel for age calculations:

Alternatives to DATEDIF (If You Avoid the Bug)

If you do not trust DATEDIF, here are two DATEDIF-free formulas:

Age in years (exact):

=YEAR(TODAY())-YEAR(A1)-IF(DATE(YEAR(TODAY()),MONTH(A1),DAY(A1))>TODAY(),1,0)

This checks whether your birthday has occurred yet this year and subtracts 1 if not.

Age as decimal:

=YEARFRAC(A1, TODAY())

Returns a decimal like 36.04 — useful for financial formulas but not for human-readable "years, months, days" output.

Related Tools and Guides

One birthday. One click. Exact age — no formula, no bugs.

Open Age Calculator
Launch Your Own Clothing Brand — No Inventory, No Risk