ElyxAI
formulas

How to How to Convert Time to Decimal Hours

Excel 2016Excel 2019Excel 365Excel Online

Learn to convert time formats to decimal hours in Excel for accurate payroll, billing, and project tracking. This essential skill transforms time entries (e.g., 2:30) into decimal values (2.5) using simple formulas, enabling precise calculations and reporting.

Why This Matters

Converting time to decimal hours is critical for accurate payroll calculations, billing rates, and project management. Most timekeeping systems use decimal hours, making this conversion essential for financial reporting.

Prerequisites

  • Basic understanding of Excel formulas and cell references
  • Time values already entered in Excel (in HH:MM or time format)

Step-by-Step Instructions

1

Enter Time Value

In cell A1, enter a time value like 2:30 or select existing time data already formatted as time in Excel.

2

Select Output Cell

Click on cell B1 where you want the decimal hour result to appear.

3

Enter Conversion Formula

Type the formula =A1*24 to multiply the time value by 24 (since Excel stores time as a fraction of 24 hours).

4

Press Enter

Press Enter to execute the formula and display the decimal hour conversion (e.g., 2.5 for 2:30).

5

Copy Formula Down

Select cell B1, then drag the fill handle down to apply the formula to all time entries (Ctrl+D after selecting range).

Alternative Methods

Using HOUR and MINUTE Functions

Combine HOUR() and MINUTE() functions: =HOUR(A1)+MINUTE(A1)/60 for more explicit control over hours and minutes conversion.

Using CONVERT Function (Ctrl+Shift+U)

In some Excel versions, use =CONVERT(A1,"day","hr") to directly convert time duration values to hours.

Tips & Tricks

  • Always verify your time values are formatted as time (not text) before applying formulas.
  • Use decimal places (Format > Cells > Number > Decimal places) to display results like 2.50 instead of 2.5.

Pro Tips

  • For time durations longer than 24 hours, Excel may display errors; use [H]:MM format to handle multi-day timesheets.
  • Create a template with the formula pre-filled to save time on repetitive conversions across multiple timesheets.

Troubleshooting

Formula returns a decimal like 0.104 instead of 2.5

You forgot to multiply by 24. Use =A1*24 instead of just =A1. Excel stores time as a fraction of 24 hours.

Result displays as time format (2:30) instead of decimal (2.5)

Right-click the result cell > Format Cells > Number tab > select Number format with appropriate decimal places.

Formula shows #VALUE! error

Your time value is stored as text, not a time format. Clear the cell and re-enter the time, or use VALUE() to convert text first.

Related Excel Formulas

Frequently Asked Questions

Why do I need to multiply by 24?
Excel stores time as a decimal fraction of a 24-hour day. A 1-hour time value is stored as 0.041667, so multiplying by 24 converts this fraction to decimal hours.
Can I convert time with seconds included?
Yes, the =A1*24 formula works with seconds too. For example, 2:30:45 becomes 2.5125 hours.
How do I handle negative time values (time owed)?
Use =IF(A1<0,(A1+1)*24,A1*24) to properly convert negative time to decimal hours, or use ABS() function to get absolute values.

This was one task. ElyxAI handles hundreds.

Sign up