Keep real timestamps, check the text

Turn 2026-11-04T14:30:15 into a date and time, and keep real timestamps as they are.

What you'll make

In Excel: 2026-11-04T14:30:15 becomes November 4, 2026 2:30:15 PM; real timestamps stay.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8=""Checks whether the cell is empty.No, it has text
2ISNUMBER(A8)Checks whether the cell is already a real timestamp.No, it is text
3IF(AND( … ))Keeps a real timestamp from 1901 on, or flags it.Not used for row 8
4IFERROR(LET( … ))Reads the text and checks it writes back the same.November 4, 2026 2:30:15 PM
5IF( … )Leaves an empty cell blank.November 4, 2026 2:30:15 PM

Read it left to right. Real timestamps pass through part 3; text goes to part 4.

=IF(A8="","",IF(ISNUMBER(A8),IF(AND(A8>=DATE(1901,1,1),A8<DATE(9999,12,31)+1),A8,"Review timestamp"),IFERROR(LET(x,DATEVALUE(LEFT(A8,10))+TIMEVALUE(MID(A8,12,8)),IF(AND(YEAR(x)>=1901,TEXT(x,"yyyy-mm-dd""T""hh:mm:ss")=A8),x,"Review timestamp")),"Review timestamp")))

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 your timestamps, real or written like 2026-11-04T14:30:15, 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 timestamp row. A 0 or a time with no date shows Review too.

Microsoft's help: IF function