FormulaCamp
Completed
4. Excel Functions · Dates and Time · 15 min

22. Tenure, Deadlines, Weekdays

Lesson 22 of 25
Task 1 of 4
  1. In C2:C5, calculate the complete years of service as of the report date in G1.

Lesson theory
  • DATEDIF(start, end, "y") gives complete years between two dates ("m" for months, "d" for days). DATEDIF works but is not listed in Excel's function suggestions;
  • EDATE(date, n) is the date n months later (January 31 + 1 month = February 28);
  • EOMONTH(date, 0) is the last day of the month;
  • WEEKDAY(date, 2) gives the day of the week as a number, where 1 is Monday and 7 is Sunday.

Instead of TODAY(), this lesson uses a fixed report date in G1, so the answers don't change from day to day.

Practice is part of Pro

The live spreadsheet, task checking and .xlsx files in all 170 lessons. Your progress is saved in this browser; sync across devices is coming soon.