Calculate Age from Date of Birth in Excel Automatically

Need to calculate someone’s age from their date of birth in Microsoft Excel? Whether it’s employee data, student lists, or survey records, Excel can instantly calculate age using built-in formulas—no calculator required.

This step-by-step guide shows how to calculate age automatically using Excel functions like DATEDIF, YEAR, and TODAY—accurately and dynamically across all versions of Excel.


📆 Method 1: Using the DATEDIF Function (Most Accurate)

The DATEDIF function is the most precise way to calculate age in years from a date of birth. It measures the time between two dates and returns the number of completed years.

Formula:

=DATEDIF(A2, TODAY(), "Y")
  • A2 — Cell containing the date of birth
  • TODAY() — Automatically updates the current date
  • "Y" — Returns the age in full years

Example:

Name DOB Age Formula
John 04/10/1990 =DATEDIF(B2, TODAY(), "Y")

This automatically returns the person’s age in years and updates each day.


📊 Method 2: Show Age in Years and Months

To display both years and months, use this extended formula:

=DATEDIF(A2, TODAY(), "Y") & " Years, " & DATEDIF(A2, TODAY(), "YM") & " Months"

Example output: 33 Years, 2 Months. Perfect for HR or school reports that need more detail.


🔢 Method 3: Using YEAR and TODAY Functions

This simpler formula works too:

=YEAR(TODAY()) - YEAR(A2)

⚠️ However, it can slightly overestimate the age if the birthday hasn’t occurred yet this year. For exact accuracy, always use DATEDIF.


✅ Best Practices and Tips

  • Always format DOB cells as Date to avoid formula errors.
  • Use Data Validation to prevent invalid entries.
  • Highlight age ranges (e.g., over 60) using Conditional Formatting.
  • DATEDIF is the best choice for accuracy and automatic updating.

🔄 Automatically Updates Over Time

The beauty of TODAY() is that your sheet refreshes every day. Open the file tomorrow, and the ages are instantly updated — ideal for HR databases, schools, or client records.


📘 Real-World Uses

  • HR departments tracking employee ages and eligibility.
  • Schools maintaining accurate student information.
  • Surveys applying age-based filters or insights.
  • Healthcare or insurance reports calculating age groups.

With one simple formula, Excel becomes a dynamic, error-free age calculator. Start using these formulas today to save time and improve data accuracy.


🎓 Learn More with Other Levels

Take your Excel analytics further with tutorials and ready-made dashboards:


📚 Related Excel Tutorials


🚀 Work Smarter with Ready-Made Dashboards

Free tool

Try it on your own data

Upload an Excel or CSV file and our free Dashboard Maker builds KPIs, trend charts and insights instantly. No sign-up needed.

  • Upload Excel (.xlsx) or CSV
  • KPIs, trends and top 10 in seconds
  • Private: your data stays in your browser
Try the Free Dashboard Maker →

Latest Stories

View all

Dynamic Student Photos in Excel: Top 3 Students on a School Dashboard

Dynamic Student Photos in Excel: Top 3 Students on a School Dashboard

Part 2 of the School Management Dashboard series: show the top 3 students with photos, names and grades that update automatically with Excel slicers.

Read more about Dynamic Student Photos in Excel: Top 3 Students on a School Dashboard

Warehouse and Sales Dashboard in Excel: Map Charts and Ranking

Warehouse and Sales Dashboard in Excel: Map Charts and Ranking

Build a warehouse and product sales dashboard in Excel with a city map chart, yearly purchase trends, smart slicers and a retail price ranking page.

Read more about Warehouse and Sales Dashboard in Excel: Map Charts and Ranking

Supply Chain KPI Dashboard: 15 Metrics to Track + Excel Templates

The 15 supply chain KPIs worth tracking (OTIF, fill rate, inventory turns, freight cost and more), how to lay them out, and how to build the dashboard in Excel step by step.

Read more about Supply Chain KPI Dashboard: 15 Metrics to Track + Excel Templates