Read compact elapsed time like 493015

Turn 493015 into a 49:30:15 duration that doesn't reset at 24 hours.

What you'll make

In Excel: 493015 becomes 49:30:15, not 1:30:15.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1VALUE(LEFT(A8,LEN(A8)-4))/24Takes every digit before the last four as hours.49:00:00
2VALUE(MID(A8,LEN(A8)-3,2))/1440Takes the two minute digits and adds them.49:30:00
3VALUE(RIGHT(A8,2))/86400Takes the last two digits as seconds and adds them.49:30:15

Excel counts time in days, so each piece is divided into days. Adding them never resets at 24 hours.

=VALUE(LEFT(A8,LEN(A8)-4))/24+VALUE(MID(A8,LEN(A8)-3,2))/1440+VALUE(RIGHT(A8,2))/86400

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 codes. Paste compact codes like 493015 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: VALUE function