Add a Z suffix only to UTC timestamps

Write 2026-11-04T14:30:15Z only when the basis is UTC. Others wait for review.

What you'll make

In Excel: 11/4/2026 2:30:15 PM, UTC becomes 2026-11-04T14:30:15Z.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1B8="UTC"Checks the time basis says UTC.TRUE
2TEXT( … )Writes the date, a T, 24-hour time, then Z."2026-11-04T14:30:15Z"
3"Review UTC basis before export"The message for Local or Unknown.Not used for row 8
4IF( … )Uses part 2 for UTC, otherwise part 3."2026-11-04T14:30:15Z"

The doubled quotes keep T and Z as plain letters. Z only labels the time; it doesn't convert it.

=IF(B8="UTC",TEXT(A8,"yyyy-mm-dd""T""hh:mm:ss""Z"""),"Review UTC basis before export")

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 dates and times. Paste real dates and times and their basis, like UTC or Local, into the green columns of the Template tab. The export text fills in by itself.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Only mark a time UTC when you know it is. The formula never works out the zone for you.

Microsoft's help: TEXT function