How to display hours over 24 H in Excel?
- Why Excel doesn't display hours beyond 24 hours
By default, the maximum hours is 23:59:59 in Excel
- Customize your time format
To display hours over 24 hours, you must create your own time format
But, if you change one option in the number format, you can display hours over 24.
Difference between hours and days in Excel
Rule 1 : A whole number is a day
To understand this, have a look at this example
- Let's consider the value 0.5
- Convert it into Time format. Excel displays 12H.
The explanation is simple. 0.5 is half of a day so it's 12H.
Why Excel doesn't display over 24 hours?
In this example, all the values are in Time format.
But now, if you convert this result into Time format, all the cells show a result under 24 hours.
It's because, after 23:59:59, it's 1 day.
So Excel converts the result into days for the whole number and hours for the rest 💡
Display hours over 24
To display hours over 24, you must customize your number format with brackets.
Open the custom number format.
- By using the shortcut Ctrl+1
- Or, by selecting the last menu in the dropdown Number Format list
In the dialogue box Format Cells, write the following code with the hour code between brackets.
- The [h] between brackets means the hours over 24 hours
- The mm means the minute format
Trick to Convert whole numbers to decimal numbers
If your document represents hours but in reality it's integer, like 8 for 8 hours, there is an easy way to convert all your data.
- Write the value 24 in an empty cell
- Copy it
- Select all the data to convert
- Open the dialog box Paste Special.
- Select the option Divide
This video explains how to proceed.
- Display negative time in Excel
- Calculation of tenths, hundredths and thousandths with Excel
- Excel Split Date and Time