Show a letter time with AM or PM

Turn the time 14:30 into the text 2:30 PM for a letter. Empty cells stay blank.

What you'll make

In Excel: 14:30 becomes 2:30 PM, 00:00 becomes 12:00 AM, blank stays blank.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8=""Checks if the time cell is empty.No
2A8The real clock time.14:30
3"h:mm AM/PM"The pattern: hour, minutes, then AM or PM."h:mm AM/PM"
4TEXT( … )Writes the time in that pattern as text."2:30 PM"
5IF( … )Leaves the cell blank if part 1 says yes."2:30 PM"

Read it left to right. Without part 1, an empty cell would show as 12:00 AM.

=IF(A8="","",TEXT(A8,"h:mm AM/PM"))

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 times. Paste real times into the green column of the Template tab. The letter times fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Seconds are left off, so 2:30:45 PM shows as 2:30 PM. Check times where seconds matter.

Microsoft's help: TEXT function