Read timestamp text with milliseconds
Turn the text 2026-11-04T14:30:15.123 into a real date and time with .123 seconds.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | DATE( … ) | Reads the year, month and day from the text. | 11/4/2026 |
| 2 | TIME( … ) | Reads the hours, minutes and seconds and adds them. | … 2:30:15 PM |
| 3 | MID(A8,21,3) | Takes the 3 digits after the dot. | "123" |
| 4 | /86400000 | Turns milliseconds into part of a day and adds it. | … 2:30:15.123 PM |
Read it left to right. A day has 86,400,000 milliseconds. A Z at the end is ignored.
=DATE(LEFT(A8,4),MID(A8,6,2),MID(A8,9,2))+TIME(MID(A8,12,2),MID(A8,15,2),MID(A8,18,2))+MID(A8,21,3)/86400000How 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 timestamps like 2026-11-04T14:30:15.123 into the green column 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
Times stay as written, so Z times stay in UTC. Keep the original text if you need every digit exactly.
Microsoft's help: MID function
OTHER ROUTES YOU MIGHT LIKE

Read a time like T14:30:15
T14:30:15 → 2:30:15 PM
Get the template →
Read a two-digit-year timestamp
26-11-04 14:30:15 + 2000 → November 4, 2026 2:30:15 PM
Get the template →
Read a month-first timestamp
11/04/26 2:30:15 PM + 2000 → November 4, 2026 2:30:15 PM
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →