View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
steven
 
Posts: n/a
Default Convert a number to a time

suppose you have 232.5 in cell A1. in cell B1 type
=((A1-ROUNDDOWN(A1,0))*60/100)+ROUNDDOWN(A1,0)

That should do the trick.

Steven.

"Jack" wrote:

I have the following number 232.5 which is 232 hours and 0.5 of an hour. I
want to convert this to 232 hours and 30 minutes or 232:30. How can i do
this? I know i need to multiply the decimal by 60, but how can i perform a
calculation on just the decimal part of a number and not the whole number?