Count year boundaries between dates

Turn December 31, 2026 to January 1, 2027 into 1 year boundary.

What you'll make

In Excel: December 31, 2026 to January 1, 2027 becomes 1 year boundary.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1YEAR(B8)Gets the end date's year.2027
2-YEAR(A8)Takes away the start date's year.1

Read it left to right. Month and day are ignored: December 31 to January 1 counts 1.

=YEAR(B8)-YEAR(A8)

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own dates. Paste start dates and end dates into the green columns of the Template tab. The counts fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This counts year changes, not whole years or ages. Put the earlier date in Start date, or you get a minus number.

Microsoft's help: YEAR function