Skip to main content

How to Convert Time to Decimal Hours in Excel

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

Payroll wants 3.5, not 3:30. Excel stores a time as a fraction of a day, so multiplying it by 24 gives hours: 3:30 × 24 = 3.5. Then set the result's format to Number, because Excel first shows it as a time.

The example is the Hours column of the old overtime timesheet from Part 1 of the Overtime Timesheet series, built from its Time worked column.

Prerequisites​

Why 24​

A time is a fraction of a day: 3:30 is 3.5 of 24 hours, so it's stored as 3.5/24 = 0.1458. Multiplying by 24 undoes the division. Microsoft's SUM function page says the same: Excel calculates times as a fraction of a day, so multiply by 24 to get hours.

Step 1: Multiply by 24​

Next to the time, in a new column, type:

OvertimeLog → Hours
=[@[Time worked]]*24

Outside a table, with the time in I2: =I2*24.

The new Hours column with J2 being edited as =[@[Time worked]]*24 next to the Time worked column

Step 2: Format the Result as a Number​

When I pressed Enter, the column showed 12:00, 00:00 and 18:00: Excel had given it the time format of Time worked, so 3.5 hours was shown as 3.5 days on a clock. Select the results, J2:J15, and on the Home tab set Number Format to Number:

The Number Format list open with Number outlined in red, next to the Hours column still showing 12:00 and 00:00

Fixed: Excel Shows Hours as 12:00 or 00:00 After Multiplying by 24 tells the whole story.

Step 3: Check the Hours​

The column now shows decimal hours: 3.50 for 3:30, 4.00 for 4:00, 3.75 for 3:45 and 7.00 for 7:00:

The Hours column showing 3.50, 4.00, 4.00, 5.00, 4.00, 4.00, 4.00, 7.00, 3.75, 4.00, 4.00, 3.50, 5.50 and 4.00 next to the matching Time worked values

These add up like ordinary numbers, which is what the monthly totals use: How to Total Hours by Person and Month in Excel with SUMIFS.

Common Mistakes​

MistakeWhat happensDo this instead
Leaving the time format3.5 shows as 12:00Set Number Format to Number
Multiplying by 60You get minutes divided by 24, not hoursMultiply by 24 for hours, 1440 for minutes
Rounding the time firstMinutes are lost before convertingConvert, then round if you must

Troubleshooting​

SymptomLikely causeFix
12:00, 00:00 or 18:00A time format on the resultNumber Format → Number
0.15 instead of 3.5The *24 is missingMultiply by 24

FAQ​

How do I convert back?​

Divide by 24 and format as a time: 3.5/24 shows as 03:30.

Should I store hours as decimals or times?​

Both, in two columns: times are easy to check against the shift, decimals are easy to total and pay. The timesheet keeps both.

Conclusion​

=Time*24 turns a time into hours, and a Number format shows them as 3.50 instead of a clock time.

Additional Resources​