Read a timestamp with a century prefix
Turn 04-NOV-26 02.30.15.123456 PM and the century 20 into 11/4/2026 14:30:15.123.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | DATEVALUE( … ) | Puts the century before the 2-digit year and reads the date. | 11/4/2026 |
| 2 | SUBSTITUTE( … ) | Takes the clock and swaps each dot for a colon. | "02:30:15" |
| 3 | TIMEVALUE( … ) | Adds AM or PM, reads the clock time and adds it. | … 14:30:15 |
| 4 | MID( … )/86400000000 | Adds the 6 digits after the dot as part of a second. | … 14:30:15.123 |
Read it left to right. Part 1 uses the century in B8. Part 2 sits inside part 3, which also takes AM or PM from the end.
=DATEVALUE(LEFT(A8,7)&B8&MID(A8,8,2))+TIMEVALUE(SUBSTITUTE(MID(A8,11,8),".",":")&" "&RIGHT(A8,2))+MID(A8,20,6)/86400000000How 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 timestamps. Paste text like 04-NOV-26 02.30.15.123456 PM and its century, like 20, into the green columns of the Template tab. The dates and times fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Choose the century for each row yourself: 19 turns 98 into 1998, and 20 turns 26 into 2026. Don't let Excel guess it.
Microsoft's help: DATEVALUE function
OTHER ROUTES YOU MIGHT LIKE

Keep missing timestamp markers blank
NULL → blank; 2026-11-04T14:30:15 → November 4, 2026 2:30:15 PM
Get the template →
Read a text timestamp as a date and time
2026-11-04T14:30:15 → November 4, 2026 2:30:15 PM
Get the template →
Read timestamp text with milliseconds
2026-11-04T14:30:15.123 → 11/4/2026 2:30:15.123 PM
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →