DATEDIF Function Explained

The DATEDIF Function in Microsoft Excel calculates the number of days, months, or years between two given dates. It takes three arguments: start_date, end_date, and unit. The unit argument can be “d” for days, “m” for months, or “y” for years. The function returns the difference between the two dates in the specified unit.

DATEDIF Function Syntax

DATEDIF(start_date, end_date, unit)

  • start_date: The start date of the period.
  • end_date: The end date of the period.
  • unit: The unit of time to use in the calculation. Options include “y” for years, “m” for months, “d” for days, “ym” for months ignoring years, “yd” for days ignoring years, and “md” for days ignoring months and years.