Build yyyy-mm-dd text from date parts

Turn 2026, 11 and 4 into the text 2026-11-04 for a system that needs it.

What you'll make

In Excel: 2026 + 11 + 4 becomes 2026-11-04.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1DATE(A8,B8,C8)Puts the year, month and day together as a date.November 4, 2026
2"yyyy-mm-dd"The pattern: 4-digit year, month, day."yyyy-mm-dd"
3TEXT( … )Writes the date in that pattern as text."2026-11-04"

Months and days always get two digits, so 4 becomes 04.

=TEXT(DATE(A8,B8,C8),"yyyy-mm-dd")

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 the year, month and day into the green columns of the Template tab. The date text fills in by itself.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

A month of 13 or a day of 32 rolls into the next month. Check any result that looks odd.

Microsoft's help: TEXT function