DATEDIF Function in Google Sheets

Calculates the number of days, months, or years between two dates.

Syntax

DATEDIF(start_date, end_date, unit)

Description

Calculates the number of days, months, or years between two dates.

Tips & Best Practices

Units: "Y" years, "M" months, "D" days, "YM" months ignoring years, "YD" days ignoring years.

Example

=DATEDIF(...)

The DATEDIF function belongs to the Date category of Google Sheets functions.

[Advertisement โ€” Google AdSense]

Related Functions

Need Help with DATEDIF?

If you're struggling with DATEDIF or need a custom formula built for your business, our Google Sheets experts can help. Get a free quote โ†’

๐Ÿ’ฌ