Read a 24-hour clock like 14h30m

Turn 24-hour clock text with h and m markers, like 14h30m, into a real time: 2:30 PM.

What you'll make

In Excel: 14h30m becomes 2:30 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTBEFORE(A8,"h")Takes what comes before the h: the hour."14"
2TEXTAFTER(A8,"h")Takes what comes after the h."30m"
3TEXTBEFORE( … "m")Keeps what comes before the m: the minutes."30"
4TIME( … )Puts them together as a real time.2:30 PM

Parts 2 and 3 work from the inside out. The 0 at the end means no seconds.

=TIME(TEXTBEFORE(A8,"h"),TEXTBEFORE(TEXTAFTER(A8,"h"),"m"),0)

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 text like 14h30m 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

Hours run from 0 to 23, so 14h30m is 2:30 PM. Hours over 23 or minutes over 59 roll over instead of turning amber, so check odd ones.

Microsoft's help: TIME function