Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I want to convert 0.453240 into an hh:mm:ss:ss time. How do I do this? -- oberon.black ------------------------------------------------------------------------ oberon.black's Profile: http://www.excelforum.com/member.php...o&userid=26732 View this thread: http://www.excelforum.com/showthread...hreadid=492291 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just format the cell as Time, then select the format you require.
Pete |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
If A1 contains 0.453240 then in VBA Range("B1") = Format(Range("A1"), "hh:mm:ss") or format cell B1 to be "hh:mm:ss" and in B1 put '=A1' (no quotes) "oberon.black" wrote: I want to convert 0.453240 into an hh:mm:ss:ss time. How do I do this? -- oberon.black ------------------------------------------------------------------------ oberon.black's Profile: http://www.excelforum.com/member.php...o&userid=26732 View this thread: http://www.excelforum.com/showthread...hreadid=492291 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello oberon.black, Excel only tracks time down to a 1 second interval. The decimal portion of the Time value is the number of seconds from Midnight. There are 86400 seconds in a 24 hour day. The example given is for the worksheet using coulmn "A". A1 contains the value 0.453240. EXAMPLE: 'Time in seconds since Midnight A1 0.453240 'Convert from decimal to integer A2 =A1*100000 'Calculate Hours A3 =INT(A2/3600) 'Calculate Minutes A4 =INT(MOD(A2, 3600)/60) 'Calculate Seconds A5 =MOD(A2, 3600) - (A4*60) Sincerly, Leith Ross -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=492291 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert time to decimal | Excel Worksheet Functions | |||
convert time into decimal | New Users to Excel | |||
convert decimal to time | Excel Discussion (Misc queries) | |||
How to convert time to decimal | New Users to Excel | |||
convert decimal number to time : convert 1,59 (minutes, dec) to m | Excel Discussion (Misc queries) |