Convert Hours to Decimals in Excel: Step-by-Step Guide
In this article
To convert hours to decimals in Excel, you multiply time values by 24 to transform them from Excel’s internal time format into usable decimal numbers. This is essential for payroll calculations, project tracking, or any scenario where you need to sum hours as numerical values rather than time durations. No add-ins or special tools are required—just basic Excel functions.
What You'll Need
- Microsoft Excel (any version from 2010 onward)
- A column of time values formatted as hours and minutes (e.g., 7:30, 12:15)
- A blank column to display the decimal results
Step-by-Step
- Open your Excel workbook and ensure your time values are entered correctly in a column (e.g., Column A). Each cell should contain a time in HH:MM format, like 8:45 or 0:30. Do not type numbers like 8.75—this will be treated as a decimal, not time.
- Select the first empty cell next to your first time value (e.g., B1 if your times are in A1). This is where the decimal result will appear.
- Type the formula
=A1*24into the selected cell. Press Enter. Excel will automatically calculate the decimal equivalent—for example, 7:30 becomes 7.5, and 12:45 becomes 12.75. - Click on the cell with the formula (B1) to select it. Look for the small square handle in the bottom-right corner of the cell—the fill handle.
- Click and drag the fill handle down over all the cells in Column B that correspond to your time values in Column A. Excel will copy the formula and adjust the cell references automatically (e.g., A2*24, A3*24, etc.).
- With all the decimal results selected in Column B, right-click and choose Format Cells. Alternatively, press Ctrl+1 on Windows or Command+1 on Mac.
- In the Format Cells dialog box, go to the Number tab. Under Category, select Number. Set the Decimal places to 2 (or as needed). Click OK. This ensures your results display cleanly as 8.25 instead of 8.250000.
- Optional: To avoid seeing the original time format alongside decimals, you can hide Column A by right-clicking the column header and selecting Hide. This keeps your sheet clean while preserving the source data.
Common Mistakes
- Entering times as text (e.g., typing "7 hours 30 minutes") instead of using Excel’s time format. Excel will not calculate these as numbers and your formula will return an error.
- Forgetting to multiply by 24. Time in Excel is stored as a fraction of a day, so 12 hours is 0.5. Without multiplying by 24, you’ll get 0.5 instead of 12.
- Formatting the result cell as Time instead of Number. If you leave the format as Time, Excel will interpret 7.5 as 7:30 AM the next day, not as 7.5 hours.
- Using a cell reference that includes a date (e.g., 1/1/2024 8:30). This is fine, but the formula will still work correctly—just be aware that Excel counts full days as 1, so 1.5 days = 36 hours.
- Attempting to sum a column of times directly without converting to decimals. Excel can sum times, but if you need to multiply the total by an hourly rate (e.g., $25/hour), you must first convert to decimal.
Tips
- Use conditional formatting on your decimal column to highlight values over 8 or 40, helping spot overtime or excessive hours quickly.
- Combine this conversion with a simple multiplication formula like
=A1*24*25to instantly calculate pay if the hourly rate is $25. - If you’re working with durations longer than 24 hours (e.g., 28:30), Excel still handles it correctly. Just make sure your source cells aren’t formatted as AM/PM time, which can’t represent values over 12 hours.
- To verify your conversion is working, test with known values: 6:00 should equal 6.0, 1:30 should equal 1.5, 0:45 should equal 0.75.
- Use the Text to Columns feature if your time data was imported as text. Go to Data > Text to Columns > Delimited > Next > Finish. Then reapply the time format before converting.
- For bulk operations, copy your entire decimal column, then use Paste Special > Values to replace formulas with static numbers if you no longer need the formulas.
Troubleshooting
- Formula returns #####: The column is too narrow to display the number. Widen the column by dragging the right edge of the column header.
- Formula returns #VALUE!: One or more source cells contain text instead of time. Check each cell in Column A. If you see a left-aligned number (text) instead of right-aligned (number), convert it using Text to Columns or retype it as HH:MM.
- Result is a date or time, not a number: The cell is formatted as Time. Go to Format Cells > Number > Number, and set decimal places to 2.
- Decimal is too precise (e.g., 7.500000001): This is a floating-point precision issue. Apply Number formatting with 2 decimal places to hide it. It does not affect calculations.
- Formula doesn’t drag down correctly: Make sure you’re dragging the fill handle, not copying and pasting. If you pasted, the references may not update. Use the fill handle for automatic adjustment.
- Time values appear as serial numbers (e.g., 0.3125): Your cells are formatted as General or Number. Select them, press Ctrl+1, choose Time under Category, and pick a format like h:mm. Then reapply the *24 formula.
Frequently Asked Questions
Can I convert minutes directly to decimals without entering hours?
Yes. If you enter just minutes (e.g., 90 in a cell), format the cell as Number and divide by 60:=A1/60. This gives you 1.5 for 90 minutes. Alternatively, enter it as 1:30 to use the time format method.
What if my time includes seconds (e.g., 7:30:45)?
The formula still works. Excel stores time down to the second, so 7:30:45 multiplied by 24 equals 7.5125. The result will be precise to the second.Can I convert decimal hours back to time format?
Yes. Take a decimal (e.g., 8.75) and divide by 24:=A1/24. Then format the result cell as Time (h:mm). Excel will show 8:45.