How to convert time to decimal in Excel

Excel stores time as a decimal fraction of a 24-hour day, so converting visible time to a decimal number is straightforward once you understand the math. A time like 3:00 PM is actually stored as 0.625 (because 15 hours ÷ 24 hours = 0.625). To see this decimal value instead of the time format, you multiply the time cell by 24 for hours, or leave it as-is if you want the fraction of a full day.

The fastest method is to format an existing time cell to show its decimal equivalent, or to use a simple formula to convert time into hours, minutes, or seconds as decimal numbers. Which approach you choose depends on whether you want to keep the original time format or replace it entirely.

Key Takeaways

  • Excel stores all times as decimals (where 1 = 24 hours), so you can multiply by 24 to convert to decimal hours.
  • Use the formula =A1*24 to convert a time in cell A1 to decimal hours, or =A1*24*60 for decimal minutes.
  • Changing a cell's number format from Time to Number will show the underlying decimal value, but this is usually not what you want without multiplying first.
  • If you have time in text format (like "3:30" typed as words), you must convert it to actual time first using the TIMEVALUE function before the decimal conversion works.

Converting time to decimal hours with a formula

The most common conversion is time to decimal hours. If you have a time value in cell A1 and want to see how many hours it represents as a decimal, use this formula in a new cell:

=A1*24

This works because Excel's internal time format is already a decimal where 1 = one full day (24 hours). Multiplying by 24 converts that fraction into hours. So if A1 contains 3:30 (3 hours and 30 minutes), the formula returns 3.5.

Type the formula into any empty cell, press Enter, and the result appears as a decimal number. You can copy this formula down to convert multiple time values at once by clicking the cell with the formula and dragging the small square at its bottom-right corner down to the last row you need.

Converting time to decimal minutes or seconds

If you need the time expressed as decimal minutes instead of hours, multiply by 24 and then by 60:

=A1*24*60

For example, 3:30 becomes 210 (decimal minutes). To convert to decimal seconds, multiply by 24, 60, and 60 again:

=A1*24*60*60

The same 3:30 time becomes 12,600 decimal seconds. These formulas are useful when you need to calculate elapsed time or work with time data in a system that expects minutes or seconds rather than hours.

Changing the number format instead of using a formula

If you change a time cell's format from Time to Number without using a formula, Excel shows the raw decimal fraction — usually a number between 0 and 1. For example, 3:30 PM displays as 0.645833 instead of 3.5 hours. This is rarely what you want, because it represents the fraction of a full day, not the number of hours.

To do this anyway: right-click the cell, select Format Cells, choose the Number tab, and click Number in the Category list. This shows the underlying decimal, but you will need to multiply by 24 afterward to get meaningful hours. It is simpler to just use the formula =A1*24 from the start.

Working with time entered as text

If your time values are stored as text (you typed "3:30" and Excel did not recognize it as a time), the multiplication formula will not work. You must convert the text to actual time first using the TIMEVALUE function:

=TIMEVALUE(A1)*24

TIMEVALUE reads text that looks like a time and converts it to Excel's internal time format. Once it is converted, multiplying by 24 gives you decimal hours. If TIMEVALUE returns an error, check that your text follows a standard time format like "3:30 PM" or "15:30".

You can tell if time is stored as text by looking at the cell alignment — text aligns left by default, while time values align right. Text-formatted time also will not work in other time calculations, so converting it to real time is worth doing once.

Rounding decimal time to a specific number of places

Decimal time conversions often produce long strings of digits. If you want to round to a cleaner number, wrap your formula in the ROUND function:

=ROUND(A1*24,2)

This converts the time to decimal hours and rounds to 2 decimal places. Change the 2 to whatever precision you need — use 1 for one decimal place, 0 for whole hours, or 3 for three decimal places. ROUND does not change the actual value Excel uses in calculations, only what displays on screen.

Combining multiple time cells into one decimal total

If you have several time entries in column A and want to add them together as a decimal, sum the times first and then multiply by 24:

=SUM(A1:A10)*24

This adds all the times in cells A1 through A10 and converts the total to decimal hours. For example, if A1 contains 2:15 and A2 contains 1:45, the sum is 4:00, which becomes 4 in decimal. This is useful for timesheets where you need to report total hours worked as a decimal number.

Frequently Asked Questions

Why does my time show as a decimal like 0.645833 instead of hours?

Excel is showing the raw fraction of a 24-hour day. Multiply that cell by 24 to convert it to decimal hours. If you used a formula like =A1*24, make sure the result cell is formatted as a Number, not as Time.

Can I convert time backwards from decimal to hours:minutes format?

Yes. If you have a decimal like 3.5 in cell B1 and want to show it as 3:30, use =B1/24 and format the result cell as Time. Excel will display it in hours:minutes format.

What if my time includes seconds, like 3:30:45?

The formula =A1*24 still works and gives you 3.5125 (3 hours, 30 minutes, and 45 seconds as a decimal). If you need only hours and minutes without seconds, use =ROUND(A1*24,2) to round to two decimal places.

Does the formula work with negative time values?

Excel does not normally allow negative time, but if you have a cell showing a negative time (usually displayed as ##### or an error), multiply by 24 as usual. The result will be a negative decimal number.

How do I convert time duration that spans multiple days?

If your duration is stored as time and includes days (like 1:12:30 for 1 day, 12 hours, 30 minutes), multiply by 24 to get total hours. For total days as a decimal, do not multiply — just format the cell as a Number instead of Time.