Forum Discussion
MikaJ69
Dec 04, 2023Copper Contributor
Hours to desimal
Hi! How can I change hours to decimal. For example 23073:06 hours to decimal?
HansVogelaar
Dec 04, 2023MVP
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.
MikaJ69
Dec 05, 2023Copper Contributor
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.
- HansVogelaarDec 05, 2023MVP
- MikaJ69Dec 05, 2023Copper Contributor
- HansVogelaarDec 05, 2023MVP
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.