Count month boundaries between dates

Turn November 4, 2026 to December 1, 2026 into 1 month boundary.

What you'll make

In Excel: November 4, 2026 to December 1, 2026 becomes 1 month boundary.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
112*(YEAR(B8)-YEAR(A8))Counts the years apart, as months.0
2+MONTH(B8)Adds the end date's month number.12
3-MONTH(A8)Takes away the start date's month number.1

Read it left to right. The day of the month is ignored: January 31 to February 1 counts 1.

=12*(YEAR(B8)-YEAR(A8))+MONTH(B8)-MONTH(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 month changes, not whole months. Put the earlier date in Start date, or you get a minus number.

Microsoft's help: MONTH function