Convert a year and day-of-year code
Turn the code 2026308 (day 308 of 2026) into a real date: November 4, 2026.
What you'll make

The formula

| Number | Part | What it does | For row 8 |
|---|---|---|---|
| 1 | LEFT(A8,4) | Takes the first 4 digits: the year. | "2026" |
| 2 | 1 | Starts counting from January. | 1 |
| 3 | RIGHT(A8,3) | Takes the last 3 digits: the day of the year. | "308" |
| 4 | DATE( … ) | Counts that many days into the year. | November 4, 2026 |
Excel counts on past the end of January, through the months, to day 308.
=DATE(LEFT(A8,4),1,RIGHT(A8,3))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 day codes like 2026308 into the green column 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
Day 366 only exists in a leap year. In other years it rolls into January, so check odd codes.
Microsoft's help: DATE function
OTHER ROUTES YOU MIGHT LIKE

Correct a confirmed month/day reversal
April 11, 2026 → November 4, 2026
Get the template →
Convert MMDDYYYY text into a date
11042026 → November 4, 2026
Get the template →
Convert a 1904 date number to a date
1904 date number 44868 → November 4, 2026
Get the template →
Show a letter date as November 5, 2026
11/5/2026 → November 5, 2026
Take this route →