Convert dotted clock codes to real times

Turn the text 14.30.15 or 09.05 into a real time: 2:30:15 PM or 9:05 AM.

What you'll make

In Excel: 14.30.15 becomes 2:30:15 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The clock code, with dots between the parts."14.30.15"
2SUBSTITUTE(A8,".",":")Swaps each dot for a colon."14:30:15"
3TIMEVALUE( … )Turns that text into a real time.2:30:15 PM

Each bracket wraps the one above it, so Excel works from the inside out. Hours use 24-hour numbering.

=TIMEVALUE(SUBSTITUTE(A8,".",":"))

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

Before you send

Use clock codes only. A decimal hour like 14.5 means half past two, but it comes out as 2:05 PM.

Microsoft's help: SUBSTITUTE function