Clean a mixed column of clock times

Turn timestamps and time text like 9:05 AM into real clock times, midnight included.

What you'll make

In Excel: Text 9:05 AM becomes 9:05:00 AM; timestamps keep their time.

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 a date and time
2ISNUMBER(A8)Checks whether the cell is a real time or timestamp.Yes
3MOD(A8,1)Drops the date and keeps the clock time.2:30:15 PM
4IFERROR(TIMEVALUE(A8), … )Reads time text, or says Review time.Not used for row 8
5IF( … )Blank if empty, part 3 for numbers, else part 4.2:30:15 PM

Read it left to right. Real times and timestamps keep their clock, and text is read as a time.

=IF(A8="","",IF(ISNUMBER(A8),MOD(A8,1),IFERROR(TIMEVALUE(A8),"Review time")))

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

Before you send

The date is dropped on purpose. Midnight shows as 12:00:00 AM; it's a real time, not a missing one.

Microsoft's help: TIMEVALUE function