Make a year-month text label from a date
Turn the date November 4, 2026 into the label 2026-11.
What you'll make

The formula

| Number | Part | What it does | For row 8 |
|---|---|---|---|
| 1 | A8 | The real date. | November 4, 2026 |
| 2 | "yyyy-mm" | The pattern: 4-digit year, then month. | "yyyy-mm" |
| 3 | TEXT( … ) | Writes the year and month as text. | "2026-11" |
Months always get two digits, so 4 becomes 04. Labels then sort by year, then month.
=TEXT(A8,"yyyy-mm")How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own dates. Paste real dates into the green column of the Template tab. The labels fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
The result is text, not a date. Keep the original dates for date math.
Microsoft's help: TEXT function
OTHER ROUTES YOU MIGHT LIKE

Show a date as yyyy-mm-dd text
November 4, 2026 → 2026-11-04
Get the template →
Show the full month name from a date
November 4, 2026 → November
Get the template →
Get the year from a date
November 4, 2026 → 2026
Get the template →
Show a letter date as November 5, 2026
11/5/2026 → November 5, 2026
Take this route →