Display Excel Values as Hours and Minutes with a Duration Format
Question details
Display a value such as 5:31 as an hours-and-minutes duration rather than a time of day.

- 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.
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.
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.
Select the cell or range, right-click it, and choose Format Cells.
On the Number tab, select Custom and enter [h]:mm in the Type box.
Click OK. A numeric value representing five hours and 31 minutes should display as 5:31.
Convert text or adjust a formula if the duration still shows AM
Use this approach if applying [h]:mm does not change a displayed value such as 5:31:00 AM.
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. Open the spreadsheet: Open your workbook in WPS Spreadsheets and select the cells containing numeric time values.
- 2. Open cell formatting: Right-click the selected cells and choose Format Cells.
- 3. Set the custom format: Choose Custom, enter [h]:mm in the format field, and click OK.
- 4. Check the result: Look at the formatted cells to confirm that they show elapsed hours and minutes without AM or PM.

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.




