100% Free MasterclassDate & TimeBeginner Level

=DATEDIF() Interactive Masterclass & Practice Simulator

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

Official Syntax:=DATEDIF(start_date, end_date, unit)

Live Interactive Excel Spreadsheet (Full Width)

Type directly in the cells or use the formula bar (fx)
X
Excel Live Grid: =DATEDIF() Practice Dataset
E2
fx
DATEDIF(start_date, end_date, unit)

start_date: The start date.

🎯 Active Cell: Enter any formula or value into cell E2! Try =DATEDIF(A2, B2, "Y")
Sheet: Sheet 1 (Practice Table)
#AHire Date (A)BReview Date (B)CDepartment (C)DCompleted Years (D)EOutput: =DATEDIF() (E)FColumn FGColumn GHColumn H
2
3
4
5
6
7
8
9
10
Formula Assistant
Cell: E2

Excel Calculation Rules:

  • Click on any cell across the entire sheet.
  • Type =B2*C2, =DATEDIF(...), or any math!
  • Click other cells to insert cell addresses automatically.
  • Press Enter or click to evaluate live!

⚡ Pro Keyboard Shortcuts:

Enter CalculateTab Next CellF2 Edit CellEsc Cancel
Ready • Any Cell Formula EngineZoom: 100%
Advertisement Google AdSense Verified Slot

Google AdSense Responsive Unit (horizontal)

Compliant responsive placement adhering to Google Publisher Policies. Ads will display here upon adding your Publisher ID in .env.local.

Graded Practice Challenges (1)

Free & Unlocked
1

Exercise 1: Practice =DATEDIF() in Live Simulator

+50 XP

🎯 Target Goal:

Calculate Completed Full Years of Employee Tenure

Syntax Parameters Breakdown

start_dateRequired

The start date.

end_dateRequired

The end date.

unitRequired

"Y" (Years), "M" (Months), "D" (Days), "YM" (Months excluding years).

Top Pitfalls to Avoid:

  • Forgetting to close the parenthesis ) at the end of the formula.
  • Mismatching cell range sizes in lookup vectors or criteria arrays.

Corporate Pro Tips:

  • Use "Y" for years, "M" for months, and "D" for days.
  • Use "YM" to calculate remaining months excluding full years (e.g. 5 Years and 4 Months).