Convert an mmyy valid-through code
Turn the code 1126 and the century 2000 into a real date: November 30, 2026.
What you'll make

The formula

| Number | Part | What it does | For row 8 |
|---|---|---|---|
| 1 | B8 | The century you choose, like 1900 or 2000. | 2000 |
| 2 | RIGHT(A8,2) | Takes the last 2 digits and adds the century. | 2026 |
| 3 | LEFT(A8,2) | Takes the first 2 digits: the month. | "11" |
| 4 | DATE( … ) | Makes the 1st of that month. | November 1, 2026 |
| 5 | EOMONTH( … ) | Finds the last day of that month. | November 30, 2026 |
Excel works from the inside out. The 1 inside DATE is day 1, and the 0 keeps the same month.
=EOMONTH(DATE(B8+RIGHT(A8,2),LEFT(A8,2),1),0)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 four-digit codes like 1126 and their century, like 2000, into the green columns of the Template tab. The dates fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Use this only when the code means valid through the end of that month. Choose the century for each row yourself: 1900 turns 99 into 1999, and 2000 turns 26 into 2026.
Microsoft's help: EOMONTH function
OTHER ROUTES YOU MIGHT LIKE

Convert month-year text to month start
November-2026 → November 1, 2026
Get the template →
Convert m/yyyy text to a month start
11/2026 → November 1, 2026
Get the template →
Convert a yymm code with a century
2611 + 2000 → November 1, 2026
Get the template →
Show a letter date as November 5, 2026
11/5/2026 → November 5, 2026
Take this route →