Excel Tutorial: How To Calculate Age On Excel From Date Of Birth


Calculating age in Excel is an essential skill for anyone working with date of birth data. Whether you are creating a database of customer information or analyzing demographic trends, being able to accurately calculate age can provide valuable insights. In this tutorial, we will cover the step-by-step process for determining age from a date of birth in Excel.

Key Takeaways

  • Calculating age in Excel is important for data analysis and customer information management.
  • The DATE function in Excel can be used to input a date of birth.
  • The DATEDIF function is essential for calculating the difference in dates, including age.
  • Accounting for leap years is crucial in accurate age calculations.
  • Formatting and using the age calculation in other Excel functions enhances data presentation and analysis.

Understanding the DATE function in Excel

When working with dates in Excel, the DATE function plays a crucial role in helping users perform complex calculations and operations. It allows users to create a date from individual year, month, and day components, which can then be used in various calculations.

A. Explanation of how the DATE function works

The DATE function in Excel takes three arguments: year, month, and day. These arguments are used to create a date that can be utilized in different formulas and functions within Excel. The syntax for using the DATE function is =DATE(year, month, day).

B. Example of using the DATE function to input a date of birth

Suppose we have a date of birth for a person, and we want to calculate their age. We can use the DATE function to input the date of birth into Excel. For example, if a person was born on April 15, 1990, we can use the formula =DATE(1990, 4, 15) to create a date of birth that can be used in our age calculation.

Calculating the difference between the current date and the date of birth

When working with Excel, it is often necessary to calculate the age of individuals based on their date of birth. Fortunately, Excel offers a convenient function called DATEDIF that allows users to easily determine the age of a person.

A. Introduction to the DATEDIF function

The DATEDIF function in Excel is used to calculate the difference between two dates in terms of days, months, or years. It takes three arguments: the start date, the end date, and the unit of measurement for the difference (i.e. "Y" for years, "M" for months, "D" for days).

B. Step-by-step guide on how to use the DATEDIF function to calculate age

Using the DATEDIF function in Excel to calculate age is a simple process that involves the following steps:

  • Step 1: Open a new or existing Excel spreadsheet and enter the date of birth in one cell and the current date in another cell.
  • Step 2: In a third cell, enter the following formula: =DATEDIF([date of birth cell],[current date cell],"Y"). This formula will calculate the difference in years between the two dates.
  • Step 3: Press "Enter" to apply the formula and see the calculated age.


By following these simple steps and using the DATEDIF function in Excel, you can easily calculate the age of individuals based on their date of birth. This can be particularly useful for a variety of applications, such as HR record-keeping, financial planning, or demographic analysis.

Dealing with leap years in age calculations

When calculating age from a date of birth in Excel, it's important to account for leap years in order to ensure accurate results. Leap years, which occur every four years, add an extra day to the calendar year, and failing to adjust for this can result in inaccurate age calculations.

  • Explanation of how to account for leap years in age calculations
  • When calculating age in Excel, it's essential to consider the possibility of leap years. To account for leap years, you can utilize the DATEDIF function, which calculates the difference between two dates. By using this function and factoring in leap years, you can ensure that the age calculation is accurate.

  • Example of adjusting the age calculation for leap years
  • For example, if a person was born on February 29, 2000, and you want to calculate their age as of December 31, 2021, you would need to account for the leap years in between. Using the DATEDIF function with the correct parameters will provide the accurate age, adjusting for the leap years that have occurred.

Formatting the age calculation

When calculating age from a date of birth in Excel, it's important to format the age calculation correctly to display the result in years. Additionally, you may want to customize the appearance of the age calculation using Excel's formatting options.

A. Tips for formatting the age calculation to display in years

  • Use the DATEDIF function: To calculate age from a date of birth, you can use the DATEDIF function in Excel. The syntax for the function is =DATEDIF(start_date, end_date, "Y"). This will calculate the difference between the two dates in years.
  • Ensure the result is displayed as a number: After using the DATEDIF function, make sure the cell containing the age calculation is formatted to display numbers, not dates.

B. Customizing the appearance of the age calculation using Excel's formatting options

  • Apply number formatting: Once the age calculation is displayed as a number, you can apply number formatting to customize its appearance. This includes options such as adding commas for thousands separators, specifying decimal places, and choosing a specific number format.
  • Use conditional formatting: If you want to visually highlight certain age ranges or apply specific formatting based on the calculated age, you can use conditional formatting in Excel. This allows you to set rules for how the age calculation should be displayed based on its value.

Using the age calculation in other Excel functions

When it comes to Excel, the age calculation function can be used in conjunction with other Excel functions to create more dynamic and useful spreadsheets. By combining the age calculation with other functions, users can automate various tasks and gain valuable insights from their data.

Demonstrating how the age calculation can be used in conjunction with other Excel functions

  • Today function: By using the TODAY function in Excel along with the age calculation, users can create a dynamic age calculation that updates automatically based on the current date.
  • IF function: The IF function can be used to determine if an individual is of a certain age, and then perform specific actions based on that condition.
  • YEARFRAC function: The YEARFRAC function can be combined with the age calculation to calculate someone's age with decimal precision, which can be useful in certain financial or demographic analyses.

Examples of practical applications for the age calculation in Excel

  • Human resources: HR professionals can use the age calculation in Excel to easily track and manage employee ages, retirement eligibility, and other age-related metrics.
  • Financial planning: Financial planners can utilize the age calculation to help clients project future expenses, retirement savings goals, and other financial milestones.
  • Healthcare: In the healthcare industry, the age calculation can be used to track patient ages, analyze demographic trends, and assess healthcare needs for specific age groups.


As we wrap up this Excel tutorial on how to calculate age from date of birth, let's recap the key points covered. We learned how to use the TODAY() function to get the current date, and then used the DATEDIF() function to calculate the age by subtracting the date of birth from the current date. Remember to practice this function on different sets of data to get comfortable with it. Additionally, don't be afraid to explore additional Excel functions related to date calculations, such as EDATE() and YEARFRAC(). The more you practice and explore, the more proficient you will become in using Excel for various calculations.

Excel Dashboard

ONLY $99

    Immediate Download

    MAC & PC Compatible

    Free Email Support

Related aticles