Read a timestamp with 9 decimal places

Turn 04-NOV-2026 02.30.15.123456789 PM into 11/4/2026 2:30:15.123 PM.

What you'll make

In Excel: 04-NOV-2026 02.30.15.123456789 PM becomes 11/4/2026 2:30:15.123 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1DATEVALUE( … )Reads the first 11 characters as a date.11/4/2026
2SUBSTITUTE( … )Takes the clock and swaps each dot for a colon."02:30:15"
3RIGHT(A8,2)Takes AM or PM from the end."PM"
4TIMEVALUE( … )Reads the clock time and adds it to the date.… 2:30:15 PM
5MID( … )/86400Adds the 9 digits after the dot as part of a second.… 2:30:15.123 PM

Read it left to right. Parts 2 and 3 sit inside part 4, so Excel works from the inside out.

=DATEVALUE(LEFT(A8,11))+TIMEVALUE(SUBSTITUTE(MID(A8,13,8),".",":")&" "&RIGHT(A8,2))+MID(A8,22,9)/1000000000/86400

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own timestamps. Paste text like 04-NOV-2026 02.30.15.123456789 PM into the green column of the Template tab. The dates and times fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Check that every row has a two-digit day, an English month and AM or PM. Excel can't keep all 9 digits exactly, so keep the original text if you need them.

Microsoft's help: TIMEVALUE function