How-to recipes · Dates and times
How to convert decimal hours to time in Excel
Turn 7.75 hours into 7:45 by dividing by 24, convert times back to decimal hours, and handle totals over 24 hours and rounding to minutes.
Time tracking apps, project tools and payroll systems often export hours as decimals: 7.75 means seven and three-quarter hours, which is 7 hours 45 minutes, not 7 hours 75 minutes. People reading a timesheet prefer 7:45; calculations prefer 7.75. Excel can switch between the two in both directions. The key is remembering that Excel stores time as a fraction of a day, so one hour is 1/24.
The example data
Four durations in decimal hours in A2:A5, including a quarter of an hour and a total over 24 hours.
Decimal hours to time: divide by 24
| A | B | |
|---|---|---|
| 1 | Decimal hours | Time |
| 2 | 7.75 | 7:45 |
| 3 | 8.5 | |
| 4 | 0.25 | |
| 5 | 26.4 |
7.75 / 24 = 0.3229 of a day. Formatted as [h]:mm it shows 7:45.
Result: 7:45
- Type
=A2/24in B2 and copy it down. - Format the results: Ctrl+1 [Mac: Cmd+1] > Custom >
[h]:mm. - The column now shows 7:45, 8:30, 0:15, 26:24.
The brackets in [h]:mm matter for the last value: 26.4 hours is more than a day, and the plain h:mm format would show 2:24 instead of 26:24. See How to sum time over 24 hours in Excel. In Microsoft 365 you can convert the whole column at once with =A2:A5/24 and the same format.
As text
When you need the time inside a sentence or for an export, convert it with TEXT: =TEXT(A2/24,"[h]:mm") returns the text 7:45. Use "h ""h"" mm ""min""" for a label like 7 h 45 min.
With the TIME function
TIME builds a time from hours, minutes and seconds: =TIME(INT(A2),MOD(A2,1)*60,0) returns 7:45. INT takes the whole hours and MOD(A2,1)*60 turns the decimal part into minutes. Be aware that TIME wraps around at 24 hours, so 26.4 becomes 2:24. Dividing by 24 has no such limit and is simpler.
Time to decimal hours: multiply by 24
The reverse conversion is just as short:
| A | B | |
|---|---|---|
| 1 | Time | Decimal |
| 2 | 7:45 | |
| 3 | 8:20 | 8.33 |
8:20 is 8 hours and 20 minutes = 8.33 hours. Format the result as a Number, not as a time.
Result: 8.33
If the result still looks like a time (for example 8:00), the cell inherited the time format; change it to General or Number. This conversion is what you need before multiplying by an hourly rate: =A3*24*Rate.
HOUR and MINUTE give the same answer in another way, =HOUR(A3)+MINUTE(A3)/60, but HOUR resets after 24, so it fails for durations over a day. Prefer the multiplication.
Rounding to the nearest quarter hour
Payroll often rounds to 15 minutes. Round the decimal first, then convert: =MROUND(A2,0.25)/24 rounds to the nearest quarter of an hour with MROUND. To round a time value to 15 minutes, use =MROUND(B2,"0:15"). To round up instead, use CEILING with the same step.
Minutes and seconds
| Convert | Formula | Example |
|---|---|---|
| Decimal hours to minutes | =A2*60 | 7.75 → 465 |
| Minutes to time | =A2/1440 | 465 → 7:45 |
| Time to minutes | =B2*1440 | 7:45 → 465 |
| Seconds to time | =A2/86400 | 3600 → 1:00:00 |
1,440 is the number of minutes in a day and 86,400 the number of seconds; the pattern is always divide to get a time, multiply to get a number.
Pitfalls
- 7.30 is not 7:30. A decimal of .30 is 18 minutes. If people typed hours.minutes as a decimal, convert with
=TIME(INT(A2),ROUND(MOD(A2,1)*100,0),0)instead. - Floating-point leftovers.
=A2/24may display 7:44 for some values when the number format truncates seconds. Round the decimal to 2 places or the time to whole minutes:=ROUND(A2*60,0)/1440. - Negative durations cannot be displayed as times in the default date system and show ####; keep them as decimals.
- Text exports. Values like
7,75with a decimal comma are text in an English-language Excel; convert them with NUMBERVALUE first.