A duration logged as 3725 seconds is hard to read. Divide by 86,400 to turn it into Excel’s time units, then format — 3725 becomes a tidy 1:02:05.
[h]:mm:ss formats it, with brackets so hours pass 24 if needed.
The example
Raw seconds turned into readable durations.
| A | B | |
|---|---|---|
| 1 | Seconds | h:mm:ss |
| 2 | 3725 | 1:02:05 |
| 3 | 90 | 0:01:30 |
| 4 | 100000 | 27:46:40 |
The formula
Seconds as a readable duration:
How it works
Convert to Excel’s time scale, then format:
- Excel measures time as a fraction of a day. There are
86400seconds in a day, soA2/86400converts seconds to that scale. TEXT(…, "[h]:mm:ss")formats the fraction as hours, minutes, and seconds.- The square brackets around
hlet the hours exceed 24 — so 100,000 seconds shows as 27:46:40, not 3:46:40. - Prefer a real value over text? Put
=A2/86400in a cell and apply the[h]:mm:ssnumber format directly — then it’s still a number you can add.
Going the other way? To turn a time back into seconds, multiply by 86,400: =A2*86400. The same logic with 1440 converts to/from minutes.
Try it: interactive demo
Enter a number of seconds.
Variations
As a real time value
Keep it numeric for math:
Minutes:seconds only
For short durations:
Time back to seconds
Reverse the conversion:
Pitfalls & errors
Use the brackets for long durations. Plain h:mm:ss wraps at 24 hours; [h]:mm:ss shows the full elapsed time.
TEXT returns text. The result is a string you can’t do math on. If you need to keep adding durations, store =A2/86400 as a value and format the cell instead.
Fractional seconds need .00 in the format (e.g. [h]:mm:ss.00) or they’re hidden.
Practice workbook
Frequently asked questions
How do I convert seconds to h:mm:ss in Excel?
Why use [h] instead of h in the format?
How do I keep the result as a number I can add?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class