# Hours to desimal

Copper Contributor

# Hours to desimal

Hi!

How can I change hours to decimal. For example 23073:06 hours to decimal?

6 Replies

# Re: Hours to desimal

Let's say you have a time in A1, with the custom format [h]:mm.

In another cell, enter the formula =24*A1 and set the number format of the cell with the formula to General or to Number.

# Re: Hours to desimal

Thanks Hans!

It works when your time number is under 10000:00:00 but when your time number is over 10000:00:00 it won't work.

It works for me:

# Re: Hours to desimal

Hmm... strange. (#ARVO! = #VALUE!)

# Re: Hours to desimal

That is a quirk of Excel. You cannot enter durations of 10000 hours or more directly: Excel treats them as text values - if you look closely, you'll see that the large value is left-aligned.

Excel does handle larger durations as the result of a formula, for example by adding multiple times below 10000 hours.

# Re: Hours to desimal

I understand. It's really a quirk that excel can't handle larger numbers. But hey, thank you very much Hans!
T. Mika