Keep missing timestamp markers blank

Leave export markers NULL and \N blank. Turn 2026-11-04T14:30:15 into a date and time.

What you'll make

In Excel: NULL becomes blank; 2026-11-04T14:30:15 becomes November 4, 2026 2:30:15 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1OR( … )Checks for an empty cell, NULL or \N.No
2DATEVALUE( … )Reads the first 10 characters as a date.November 4, 2026
3TIMEVALUE( … )Adds the clock time after the T.November 4, 2026 2:30:15 PM
4IF( … )Leaves the cell blank if part 1 says yes.November 4, 2026 2:30:15 PM

Read it left to right. Only an empty cell, NULL and \N are left blank.

=IF(OR(A8="",A8="NULL",A8="\N"),"",DATEVALUE(LEFT(A8,10))+TIMEVALUE(MID(A8,12,8)))

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 timestamps like 2026-11-04T14:30:15 into the green column of the Template tab. Missing ones marked NULL or \N stay blank.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Mark a missing time with NULL or \N, not 0 or a made-up date. Those read as real times.

Microsoft's help: IF function