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

ABC
1BornOnAge
215/5/199016/11/202636

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.

Source: support.microsoft.com

Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning

🤖
Posting...
Please wait a moment
Social VIP Classroom
Home
Thai Smiles Profile