A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Format the cell with the custom number format [h]:mm:ss so elapsed hours continue beyond 24 instead of resetting to zero.
Apply the format in Excel for Windows
- Select the cell or range containing the elapsed time.
- Press Ctrl+1 to open Format Cells.
- Select Number → Custom.
- In Type, enter one of these formats:
-
[h]:mm:ss— total hours, minutes, and seconds, such as27:15:30 -
[h]:mm— total hours and minutes, such as27:15 -
[mm]:ss— total elapsed minutes and seconds -
[ss]— total elapsed seconds
-
- Select OK.
The square brackets tell Excel to display the accumulated total rather than treating the result as a time of day. Microsoft documents [h]:mm for elapsed hours and [mm]:ss for elapsed minutes.^1^
For example, if A2 is the start time and B2 is the end time, use:
=B2-A2
Then apply [h]:mm:ss to the result cell.
If changing the format has no effect, the source values may be stored as text rather than valid Excel times. Formatting changes only how a numeric value is displayed; it does not convert text into a time value.
References