Sheetsdrill

Level 5: Text and dates Exercise 48 of 50 Pro

Full years of service

A Google Sheets formula exercise from Sheetsdrill. Solve it with a formula bar on a live sheet in your browser, and it is checked the moment you submit.

The task

Work out each employee's completed years of service on the report date in F1. Fill C2 and C3 using DATEDIF.

What this exercise teaches

Subtracting the years (2026 minus 2019) ignores whether the anniversary has passed yet. DATEDIF does not.

A hint if you get stuck

DATEDIF(start date, end date, "Y") counts whole years. The start date goes first.

Functions used: DATEDIF

This exercise is part of Pro

Pro unlocks all 50 exercises, with worked solutions and progress saved to your account. The free exercises work without an account.

You create a free account first, so Pro is attached to it.

Monthly is charged today and then every month until you cancel, in one click from your account page. Lifetime is one payment with no renewals. Full refund within 14 days of paying.

Start with the free exercises

More exercises in Text and dates