Convert a yyyy-mm period to month end

Turn the text 2026-11 into a real date: November 30, 2026.

What you'll make

In Excel: 2024-02 becomes February 29, 2024.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesFor row 8
1LEFT(A8,4)Takes the first 4 characters: the year."2026"
2RIGHT(A8,2)Takes the last 2 characters: the month."11"
3DATE( … )Makes the 1st of that month.November 1, 2026
40Stays in the same month.November 2026
5EOMONTH( … )Finds the last day of that month.November 30, 2026

Excel works from the inside out. The 1 inside DATE is day 1.

=EOMONTH(DATE(LEFT(A8,4),RIGHT(A8,2),1),0)

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 periods like 2026-11 into the green column of the Template tab. The dates fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

This gives the end of the month, not a day anything happened. A month like 2026-13 rolls into the next year, so check odd months.

Microsoft's help: EOMONTH function