Formula for Completed Years Between Two Dates
Use DATEDIF(start_date, end_date, "Y") to return the number of full completed years between a start date in A2 and an end date (or TODAY()):
=DATEDIF(A2, TODAY(), "Y")
Common Unit Codes for Date Differences
| Unit Code | What It Returns | Example Formula |
|---|---|---|
"Y" |
Completed full years | =DATEDIF(A2, TODAY(), "Y") |
"M" |
Completed full months | =DATEDIF(A2, TODAY(), "M") |
"D" |
Total calendar days | =B2-A2 or =DATEDIF(A2, B2, "D") |
Practical Tips
- Make sure start date is earlier than end date: If
A2is later thanB2, the formula returns a#NUM!error. - Business days vs. calendar days: To exclude weekends and holidays, use NETWORKDAYS instead.