๐Ÿ“˜ Excel Formula to Calculate Age

Complete guide to Excel formulas for calculating age from date of birth. Step-by-step instructions with examples.

๐Ÿ“Š DATEDIF | YEARFRAC | Simple Formula

๐Ÿ”ข Free Online Age Calculator

Test your age before applying Excel formulas!

๐ŸŸข LIVE CURRENT TIME
--
--:--:--
--
๐Ÿ“˜ EXCEL AGE CALCULATOR
YEARS
0
MONTHS
0
DAYS
0

๐Ÿ“˜ Excel Formulas to Calculate Age

Here are the most common Excel formulas to calculate age from date of birth with examples.

๐Ÿ“Œ Method 1: DATEDIF Function (Most Accurate)

The DATEDIF function calculates the difference between two dates in years, months, or days.

=DATEDIF(A1, TODAY(), "Y") & " Years, " & DATEDIF(A1, TODAY(), "YM") & " Months, " & DATEDIF(A1, TODAY(), "MD") & " Days"

Where A1 is the cell containing the date of birth.

๐Ÿ“… Example 1: Years Only
=DATEDIF(A1, TODAY(), "Y")
Result: 25 (if born 25 years ago)
๐Ÿ“… Example 2: Months Only
=DATEDIF(A1, TODAY(), "YM")
Result: 6 (if 6 months since last birthday)
๐Ÿ“… Example 3: Days Only
=DATEDIF(A1, TODAY(), "MD")
Result: 15 (if 15 days since last birthday)
๐Ÿ“… Example 4: Full Age
=DATEDIF(A1, TODAY(), "Y") & "Y " & DATEDIF(A1, TODAY(), "YM") & "M " & DATEDIF(A1, TODAY(), "MD") & "D"
Result: 25Y 6M 15D

๐Ÿ“Œ Method 2: YEARFRAC Function

Returns the age as a decimal number (e.g., 25.5 years).

=INT(YEARFRAC(A1, TODAY()))

This returns the age in whole years.

๐Ÿ“… Example 1: Whole Years
=INT(YEARFRAC(A1, TODAY()))
Result: 25 (if born 25.5 years ago)
๐Ÿ“… Example 2: Decimal Years
=YEARFRAC(A1, TODAY())
Result: 25.5 (if born 25.5 years ago)

๐Ÿ“Œ Method 3: Simple Formula (Quick Estimate)

Divide total days by 365.25 to account for leap years.

=(TODAY() - A1) / 365.25

This is less accurate than DATEDIF but works for quick estimates.

๐Ÿ“Š Quick Reference - Excel Age Formulas

Formula Description Example Result
=DATEDIF(A1,TODAY(),"Y") Years only 25
=DATEDIF(A1,TODAY(),"YM") Months only 6
=DATEDIF(A1,TODAY(),"MD") Days only 15
=INT(YEARFRAC(A1,TODAY())) Whole years 25
=(TODAY()-A1)/365.25 Decimal years 25.5

โ“ Frequently Asked Questions

๐Ÿ”น What is the best Excel formula to calculate age? +
The DATEDIF function is the most accurate: =DATEDIF(A1, TODAY(), "Y") for years, "YM" for months, and "MD" for days.
๐Ÿ”น How do I calculate age in years only in Excel? +
Use: =DATEDIF(A1, TODAY(), "Y") or =INT(YEARFRAC(A1, TODAY()))
๐Ÿ”น Does Excel DATEDIF work on all versions? +
Yes, DATEDIF works in Excel 2007, 2010, 2013, 2016, 2019, 2021, and Office 365.
๐Ÿ”น How do I calculate age on a specific date in Excel? +
Replace TODAY() with a specific date: =DATEDIF(A1, DATE(2026,12,31), "Y")
๐Ÿ”น Is this age formula guide free? +
Yes! Our Excel formula guide and age calculator are 100% free.