Read 20261104143015.0Z timestamps

Turn Active Directory codes like 20261104143015.0Z into a date and time. Flags others.

What you'll make

In Excel: 20261104143015.0Z becomes November 4, 2026 2:30:15 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1AND(LEN(A8)=17, … ".0Z")Checks for 17 characters ending in .0Z.TRUE
2DATE(LEFT( … ))Reads the year, month and day as a real date.November 4, 2026
3TIME(MID( … ))Adds the hour, minutes and seconds.November 4, 2026 2:30:15 PM
4"Review time code"The message when the code has another ending.Not used for row 8
5IF( … )Shows the date and time, or else the message.November 4, 2026 2:30:15 PM

The Z means UTC, so the result is UTC too. Codes ending only in Z or an offset are flagged.

=IF(AND(LEN(A8)=17,RIGHT(A8,3)=".0Z"),DATE(LEFT(A8,4),MID(A8,5,2),MID(A8,7,2))+TIME(MID(A8,9,2),MID(A8,11,2),MID(A8,13,2)),"Review time code")

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 codes. Paste codes like 20261104143015.0Z 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 every Review row by hand. Other endings and offsets are never guessed or converted.

Microsoft's help: DATE function