Read UTC times with two-digit years

Turn 261104143015Z into a real date and time. 49 means 2049, 50 means 1950.

What you'll make

In Excel: 261104143015Z 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)=13,RIGHT(A8,1)="Z")Checks for 13 characters ending in Z.TRUE
2IF(VALUE(LEFT(A8,2))>=50, … )Picks 1900 for years 50 to 99, otherwise 2000.2000
3DATE( … )Adds the two-digit year, then the month and day.November 4, 2026
4TIME( … )Adds the hour, minutes and seconds.November 4, 2026 2:30:15 PM
5IF( … )Shows the date and time, or else the Review message.November 4, 2026 2:30:15 PM

It works from the inside out: part 2 picks the century, then DATE adds the year to it. The time stays in UTC.

=IF(AND(LEN(A8)=13,RIGHT(A8,1)="Z"),DATE(IF(VALUE(LEFT(A8,2))>=50,1900,2000)+VALUE(LEFT(A8,2)),MID(A8,3,2),MID(A8,5,2))+TIME(MID(A8,7,2),MID(A8,9,2),MID(A8,11,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 261104143015Z 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

Use this only for certificate times. Other two-digit years, like birthdays, need their own century rule.

Microsoft's help: DATE function