Read elapsed time text like 49h 30m

Turn the text 49h 30m into a real duration that keeps counting past 24 hours.

What you'll make

In Excel: 49h 30m becomes an elapsed duration over two days.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TEXTBEFORE(A8,"h")/24Takes the hours before the h, counted in days.49:00
2TEXTAFTER(A8,"h ")Takes what comes after the h and space."30m"
3TEXTBEFORE( … "m")Keeps what comes before the m: the minutes."30"
4/1440Divides by 1,440 minutes in a day and adds them.49:30

Excel counts time in days. Parts 2 and 3 work from the inside out.

=TEXTBEFORE(A8,"h")/24+TEXTBEFORE(TEXTAFTER(A8,"h "),"m")/1440

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 elapsed times like 49h 30m 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. Otherwise 49:30 shows as 1:30.

Microsoft's help: TEXTBEFORE function