Convert variable-width year-first dates

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

What you'll make

In Excel: 2026-11-4 becomes November 4, 2026.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTBEFORE(A8,"-")Keeps the text before the first hyphen: the year."2026"
2TEXTBEFORE(TEXTAFTER( … ))Keeps the text between the hyphens: the month."11"
3TEXTAFTER(A8,"-",-1)Keeps the text after the last hyphen: the day."4"
4DATE( … )Puts them together as a real date.November 4, 2026

The month and day can have one or two digits.

=DATE(TEXTBEFORE(A8,"-"),TEXTBEFORE(TEXTAFTER(A8,"-"),"-"),TEXTAFTER(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 date text like 2026-1-4 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

Check that your dates are year, month, day. A day that doesn't exist, like 2026-2-30, rolls into March.

Microsoft's help: TEXTBEFORE function