How to Calculate Age in Excel: Simple Formulas for Accurate Results

How to Calculate Age in Excel

Calculating age in Excel might sound tricky, but it’s actually quite simple. By using the right formulas, you can determine someone’s age based on their birthdate and the current date. This process involves a few straightforward steps, and you’ll be able to calculate ages quickly and accurately once you get the hang of it.

How to Calculate Age in Excel

In this section, we’ll cover the steps to calculate age in Excel using formulas. By the end of these steps, you’ll know how to determine the age from a given birthdate.

Step 1: Open Excel and Enter Data

To start, open Excel and enter your data into two cells.

In cell A2, type the birthdate (e.g., 01/01/2000). In cell B2, you’ll be entering the formula to calculate the age.

Step 2: Use the DATEDIF Function

Enter the formula to calculate the age using the DATEDIF function.

In cell B2, type =DATEDIF(A2, TODAY(), "Y") to get the number of full years between the birthdate and the current date.

Step 3: Press Enter

Hit the Enter key on your keyboard to calculate the age.

Excel will automatically calculate and display the age in cell B2 based on the birthdate in cell A2.

Step 4: Format the Result (Optional)

You can format the result to make it more presentable.

Right-click on cell B2, select Format Cells, and choose the General or Number option to ensure the age is displayed correctly.

Step 5: Verify the Accuracy

Double-check the result to make sure it matches the expected age.

If there’s any discrepancy, revisit the formulas and data entries to ensure everything is correct.

Once you’ve completed these steps, Excel will display the age based on the birthdate you entered. This method is efficient and ensures accurate results.

Tips for Calculating Age in Excel

Here are some additional tips to enhance your Excel experience when calculating age:

  • Use cell references in your formulas to make updating data easier.
  • Check the date format settings in Excel to avoid errors.
  • Utilize the YEARFRAC function for more precise age calculations if needed.
  • Save your work frequently to avoid losing any progress.
  • Experiment with other date functions to expand your Excel skills.

Frequently Asked Questions

What does the DATEDIF function do?

The DATEDIF function calculates the difference between two dates in various units, such as years, months, and days.

Why is my DATEDIF formula not working?

There could be several reasons, such as incorrect date formats or typos in the formula. Double-check your inputs and ensure the dates are valid.

Can I calculate age in months or days?

Yes, you can. Use =DATEDIF(A2, TODAY(), "M") for months and =DATEDIF(A2, TODAY(), "D") for days.

How do I handle leap years in age calculations?

The DATEDIF function automatically accounts for leap years, so you don’t need to do anything extra.

Is there another way to calculate age in Excel?

Yes, you can use the YEARFRAC function: =INT(YEARFRAC(A2, TODAY())) to get the age in years.


  1. Open Excel and enter data.
  2. Use the DATEDIF function.
  3. Press Enter.
  4. Format the result (optional).
  5. Verify the accuracy.


Calculating age in Excel is a useful skill that can save you a lot of time, whether you’re managing a small database or handling a more extensive dataset. With the simple DATEDIF function, you can easily determine someone’s age from their birthdate. As you practice, you’ll become more efficient and confident in using Excel for more complex calculations. If you found this guide helpful, consider exploring other Excel functions and formulas to further enhance your spreadsheet skills. Happy calculating!

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy