Count the days left in a date’s month

Turn the date November 4, 2026 into the days left in November: 26.

What you'll make

In Excel: November 4, 2026 becomes 26 days left in November.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The real date.November 4, 2026
20Stays in the same month.November 2026
3EOMONTH( … )Finds the last day of that month.November 30, 2026
4-A8Takes the date away, leaving the days after it.26

Read it from the inside out. The date itself isn't counted; the month's last day is. A last day gives 0.

=EOMONTH(A8,0)-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 real dates into the green column of the Template tab. The days left fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

If a result shows as a date, set that column to Number format.

Microsoft's help: EOMONTH function