Read days and clock text like 2 01:30:15

Turn the text 2 01:30:15, two days and a clock time, into the real duration 49:30:15.

What you'll make

In Excel: 2 01:30:15 becomes a 49:30:15 duration.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTBEFORE(A8," ")Takes the number of days before the space."2"
2TEXTAFTER(A8," ")Takes the clock text after the space."01:30:15"
3TIMEVALUE( … )Turns the clock text into a time and adds the days.49:30:15

Excel counts time in days, so the day count adds straight on. Part 2 sits inside part 3, so Excel works from the inside out.

=TEXTBEFORE(A8," ")+TIMEVALUE(TEXTAFTER(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 times like 2 01:30:15 (days, a space, then the clock) into the green column of the Template tab. The durations fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

If you copy a duration elsewhere, give that cell the format [h]:mm:ss. Otherwise 49:30:15 shows as 1:30:15.

Microsoft's help: TEXTBEFORE function