View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe User[_2_] Joe User[_2_] is offline
external usenet poster
 
Posts: 905
Default Is there a simple formula to convert time in hundredths to minute

"Ron" wrote:
I get an exported excel file that has the time in
hours/hundredths and I have to convert it to
hours/minutes - example 6.18 = 6:11, 6.15 = 6:09, etc.


Well, the "simple" answer is: =A1/24

with the Custom format [h]:mm .

But 6.18 will display as 6:10, not 6:11. The reason is: 60*0.18 = 10.8
sec, and generally, Excel truncates seconds when displaying with an hh:mm
format [1].

So if you really want 6:11, you should do:

=ROUND(A1*60,0)/1440

where 1440 is 60*24.

-----
Endnotes

[1] I said that Excel "generally" truncates seconds when displaying hh:mm.
Actually, it sorta-rounds seconds, then truncates. So 6:10:59 (hh:mm:ss) is
displayed as 6:10 (hh:mm), but 6:10:59.51 is displayed as 6:11. I say "sorta
round" because 6:10:59.5 is displayed as 6:10.