
Formats a total number of seconds as a readable interval string.
The INTERVAL function formats a total number of seconds as a readable interval string. In this workbook engine, it is used to turn raw elapsed seconds into a display such as hours, minutes, and seconds.
This makes it useful for uptime logs, race timing, support durations, machine runtimes, and other reports where the source data is stored as total seconds.
Converts a numeric second count into a readable duration string.
Returns a formatted string for display, not a numeric Excel time value.
=INTERVAL(seconds)
The function takes one argument: the total number of elapsed seconds you want to format.
INTERVAL is supported by the spreadsheet engine used in this project, but it is not a standard Microsoft Excel worksheet function. If you need a native Excel-style alternative, a common approach is to divide seconds by 86400 and format the result with a custom format such as [h]:mm:ss.
These approaches solve similar display problems, but they are not the same.
| Approach | Returns | Best Use | Example |
|---|---|---|---|
INTERVAL(seconds) |
Text interval | Readable display from raw seconds | =INTERVAL(3665) |
seconds/86400 + [h]:mm:ss |
Numeric time value with formatting | Native Excel time math and display | =A1/86400 |
TEXT(...) |
Text | Custom formatted labels | =TEXT(A1/86400,"[h]:mm:ss") |
The main difference is that INTERVAL is a display-oriented function. If you still need to do arithmetic, keep working with the raw seconds first and format only at the end.
INTERVAL is easiest to think of as a final presentation step. First calculate or collect the total seconds, then pass that number into INTERVAL to make it readable for users.
That is especially helpful when durations go beyond 24 hours. In many spreadsheet time displays, long durations can become confusing unless you use a custom format carefully. INTERVAL gives you a direct interval string from the second count.
Because the result is text, it is best used for display columns, labels, dashboards, and exported summaries. If you want to add, subtract, or average durations, do that math on the numeric seconds before converting them.
A clean starting example is converting 3600 seconds into a readable interval.
=INTERVAL(3600)
This is useful when the source system stores elapsed time as raw seconds but the report should show a time-style result.
In cell F1, convert 3600 seconds into an interval string with =INTERVAL(3600).
INTERVAL also works well when the duration includes hours, minutes, and seconds.
=INTERVAL(3665)
This kind of input is common in logs, timers, and stopwatch-style reports where the duration is not a neat round number.
In cell F2, convert 3665 seconds into an interval string.
Long elapsed times are a good use case for INTERVAL because they often need a cumulative display.
=INTERVAL(90000)
Since 90,000 seconds is more than 24 hours, this example is useful for uptime tracking, long-running jobs, or multi-day process durations.
In cell F3, convert 90000 seconds, which is longer than 24 hours.
It is usually best to do all arithmetic first and then format the result.
=INTERVAL(3600+10)
This pattern is useful for penalty seconds, buffer adjustments, bonus time, or any report where the displayed duration comes from a calculation.
In cell F4, add a 10-second penalty to 3600 before formatting the result.
INTERVAL formats a second count as a readable interval string.86400 and use a format like [h]:mm:ss.Tell your friends about this post