Read a clock with AM/PM in parentheses

Turn clock text like 6:45(PM) from an export into a real time: 6:45 PM.

What you'll make

In Excel: 2:30:15(PM) becomes 2:30:15 PM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The clock text, with AM or PM in brackets."2:30:15(PM)"
2SUBSTITUTE( … "(" … )Swaps the opening bracket for a space."2:30:15 PM)"
3SUBSTITUTE( … ")" … )Removes the closing bracket."2:30:15 PM"
4TIMEVALUE( … )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.

=TIMEVALUE(SUBSTITUTE(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 text like 6:45(PM) 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 one clock time per cell. Other notes in brackets, like (late), turn the row amber.

Microsoft's help: SUBSTITUTE function