Excel DATEDIF function📅 Age, time between
The DATEDIF function: Age, time between. Age, years of service, rental length. This page shows the syntax, a worked example with its result and how the formula reads.
What does DATEDIF do?
Age, time between. Age, years of service, rental length
DATEDIF syntax
=DATEDIF(start_date, end_date, unit)
Arguments in square brackets [ ] are optional · argument names follow Microsoft's documentation
DATEDIF example with the result
=********
👑 Ready-to-use example formula for VIP supporters only · Become VIP
Formula in cell C2 Yellow cells = result
| A | B | C | |
|---|---|---|---|
| 1 | Born | On | Age |
| 2 | 15/5/1990 | 16/11/2026 | 36 |
How it reads: Full years between the dates · "m" months · "d" days · "ym" months left after full years
Frequently asked questions about DATEDIF
What does DATEDIF do?
Age, time between. Age, years of service, rental length
What does the DATEDIF example return?
The example formula in cell C2 gives 36.
Which Excel versions have DATEDIF?
It has been in Excel for many versions and works in the versions in common use today, including Excel for Microsoft 365.
🕸️ More date and time formulas and related ones
Source: support.microsoft.com
Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning