Count dates including both ends

Turn November 4, 2026 to November 5, 2026 into 2 dates.

What you'll make

In Excel: November 4, 2026 to November 5, 2026 becomes 2 dates.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1B8The end date.November 5, 2026
2-Takes the start date away from the end date.November 5, 2026 - …
3A8The start date.1
4+1Adds one so the start date counts too.2

Read it left to right. Weekends and holidays count as dates. The same date gives 1.

=B8-A8+1

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 count fills in by itself.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Put the earlier date in Start date. If the end comes first, the count is wrong.

Microsoft's help: DATE function