FP

FormulaPilot

Spreadsheet formula tools

Open generator
Excel how-to guide

How to datedif age years in Excel

Compute employee tenure, customer age, asset age, or any interval measured in full years.

intermediateDate & TimeDATEDIF reference

Step-by-step instructions

How to datedif age years3 steps

1

Put the start date (e.g. birth date or hire date) in column A.

2

Use TODAY() as the end date so the result updates automatically each day.

3

Use "Y" as the unit to return the count of complete years.

Example data

Worked example

Hire DateYears of Service
2018-03-157
2021-11-014
2023-06-202

Common mistakes

Errors to watch out for

DATEDIF is undocumented

DATEDIF is intentionally hidden from Excel's function list but still works. Type it manually — Excel will not autocomplete it.

Returns 0 for dates less than a year apart

DATEDIF returns complete units only. If the range is less than 12 months, "Y" returns 0. Use "M" for months or "D" for days if you need finer granularity.

FAQ

Frequently asked questions

How do I also show the remaining months after the full years?

Add a second DATEDIF with the "YM" unit — =DATEDIF(A2,TODAY(),"Y")&" years, "&DATEDIF(A2,TODAY(),"YM")&" months".

Need a custom variation?

Describe your exact spreadsheet problem — get the formula in seconds.

Open AI Formula Generator — Free

Related how-to guides

Continue learning.