Count uncovered dates between periods

An end on November 4 and a next start on November 6 leave 1 uncovered date.

What you'll make

In Excel: November 4, 2026 to November 6, 2026 becomes 1 uncovered date.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
10The smallest answer allowed.0
2B8-A8Counts the days from the end to the next start.2
3-1Leaves out the next start date, which is covered.1
4MAX( … )The bigger of 0 and the count, so never below 0.1

Read it left to right. Periods that touch or overlap give 0.

=MAX(0,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 each period end and the next start date into the green columns of the Template tab. The uncovered dates fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Use the last covered day and the first covered day of the next period. Both days count as covered.

Microsoft's help: MAX function