Formatting Issues

Display Excel Values as Hours and Minutes with a Duration Format

Jason MillerJason Miller Nov 18, 2026 870 views

Question details

Display a value such as 5:31 as an hours-and-minutes duration rather than a time of day.

Display Excel Values as Hours and Minutes with a Duration Format
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user wants to format a cell containing a time value or formula result as elapsed hours and minutes.
Observed behavior
The cell should display hours and minutes without AM or PM, including hour totals greater than 24.
Before you start

Select the cell containing the value or formula you want to display. Check the formula bar to see whether the cell contains a numeric time value, text, or a formula using TEXT.

Solution 1Recommended

Apply an elapsed hours and minutes format in Excel

Use a custom format to display numeric time values as durations, including totals over 24 hours.

1
Open Format Cells

Select the cell or range, right-click it, and choose Format Cells.

2
Enter the duration format

On the Number tab, select Custom and enter [h]:mm in the Type box.

3
Apply the format

Click OK. A numeric value representing five hours and 31 minutes should display as 5:31.

How elapsed hours work: The brackets in [h]:mm keep hours from resetting after 24. The format changes the display, not the underlying value.
Format durations in WPS Spreadsheets

Display elapsed hours and minutes in WPS Spreadsheets

Use a custom number format in WPS Spreadsheets to show numeric time values as elapsed hours and minutes without AM or PM.

  1. 1. Open the spreadsheet: Open your workbook in WPS Spreadsheets and select the cells containing numeric time values.
  2. 2. Open cell formatting: Right-click the selected cells and choose Format Cells.
  3. 3. Set the custom format: Choose Custom, enter [h]:mm in the format field, and click OK.
  4. 4. Check the result: Look at the formatted cells to confirm that they show elapsed hours and minutes without AM or PM.
Display elapsed hour totals greater than 24 with [h]:mmOpen and edit Microsoft Excel XLS and XLSX filesUse a familiar spreadsheet interfaceWork with spreadsheet files for free
QA img-9

Frequently Asked Questions

Why should I use [h]:mm instead of h:mm?

In Format Cells > Custom, [h]:mm displays total elapsed hours, even when they exceed 24. The h:mm format resets the displayed hour count after each day.

Why does my cell still show AM after I apply [h]:mm?

The displayed value may be text, or a formula may use TEXT to produce a formatted string. Check the formula bar and convert a text time with TIMEVALUE, or change the TEXT formula's format argument.

Does changing the format convert a number of hours into a duration?

No. Excel stores time as a fraction of a day, so applying [h]:mm only changes the display. To convert a numeric hour count in A1 to a duration, enter =A1/24 and format the result as [h]:mm.

How can I enter a duration longer than 24 hours?

For 29 hours and 31 minutes, enter =29/24+31/1440 in a cell. Then use Format Cells > Custom and apply [h]:mm to display 29:31.