Loading Page Content...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
In financial models, project schedules, and HR analytics, time calculation is critical. Excel stores dates as serial integers (where Day 1 is January 1, 1900) and times as decimal fractions. Understanding specialized date functions enables you to calculate employee tenure, project durations, and business day milestones effortlessly.
DATEDIF is one of Excel's most useful functions for calculating age, tenure, and elapsed time:
| Unit Code | Meaning | Calculation Output |
|---|---|---|
| "Y" | Complete Years | Total full years between dates (ideal for employee age / tenure). |
| "M" | Complete Months | Total elapsed months. |
| "D" | Days | Total elapsed calendar days. |
| "YM" | Months Excluding Years | Remaining months after subtracting complete years (e.g., 5 years, 3 months). |
| "MD" | Days Excluding Months | Remaining days after subtracting complete months. |
(Displays formatted string: "6 Years, 4 Months")
Calendar days include weekends and holidays, which distorts project deadlines. Excel provides dedicated business-day engines:
Calculates total workdays between two dates, automatically excluding Saturdays, Sundays, and specified company holidays:
Example: '=NETWORKDAYS(A2, B2, $H$2:$H$10)' calculates actual working days between start and finish dates, omitting the holiday dates listed in 'H2:H10'.
Adds N working days to a start date:
Example: If a task starts on Friday and requires 3 working days: '=WORKDAY("2026-10-02", 3)' returns Wednesday '2026-10-07' (skipping Saturday and Sunday).
Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| Text Functions (LEFT, RIGHT, MID, TRIM, LEN) | Logical Functions (IF, AND, OR, NOT) |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.