Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CPK
 
Posts: n/a
Default Convert "800" to "8:00" or "08:00"

Is there a function that will let me convert a values such as 800 to a hh:mm
format?

Thanks.


  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=TIME(LEFT(TEXT(A1,"0000"),2),RIGHT(TEXT(A1,"0000" ),2),0)

or

=SUM(MID(TEXT(A1,"0000"),{1,3},2)/{24,1440})

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Format cell as
'Time'.

Hope this helps!

In article ,
"CPK" wrote:

Is there a function that will let me convert a values such as 800 to a hh:mm
format?

Thanks.

  #3   Report Post  
KL
 
Posts: n/a
Default

....this seems to be a slightly shorter way:

=TIMEVALUE(TEXT(A2,"00\:00"))

or

=TIMEVALUE(TEXT(A1,"00"":""00"))

Regards,
KL


"Domenic" wrote in message
...
Try...

=TIME(LEFT(TEXT(A1,"0000"),2),RIGHT(TEXT(A1,"0000" ),2),0)

or

=SUM(MID(TEXT(A1,"0000"),{1,3},2)/{24,1440})

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Format cell as
'Time'.

Hope this helps!

In article ,
"CPK" wrote:

Is there a function that will let me convert a values such as 800 to a
hh:mm
format?

Thanks.



  #4   Report Post  
Tim C
 
Posts: n/a
Default

Try:

=INT(A1/100)/24+RIGHT(A1,2)/1440

Format as time.

Tim C


"CPK" wrote:

Is there a function that will let me convert a values such as 800 to a
hh:mm format?

Thanks.



  #5   Report Post  
KL
 
Posts: n/a
Default

....even shorter:

=VALUE(TEXT(A1,"00\:00"))
=VALUE(TEXT(A1,"00"":""00"))

KL


"KL" wrote in message
...
...this seems to be a slightly shorter way:

=TIMEVALUE(TEXT(A2,"00\:00"))

or

=TIMEVALUE(TEXT(A1,"00"":""00"))

Regards,
KL


"Domenic" wrote in message
...
Try...

=TIME(LEFT(TEXT(A1,"0000"),2),RIGHT(TEXT(A1,"0000" ),2),0)

or

=SUM(MID(TEXT(A1,"0000"),{1,3},2)/{24,1440})

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Format cell as
'Time'.

Hope this helps!

In article ,
"CPK" wrote:

Is there a function that will let me convert a values such as 800 to a
hh:mm
format?

Thanks.







  #6   Report Post  
Flintstone
 
Posts: n/a
Default


This formula will return the time value of a three digit or four digit
number in military time format without having to enter ( : ) between
the numbers.

Will also accommodate for entering time by pressing, ( Ctrl + Shift + ;
).

=IF(LEN(A1)=3,TIME(LEFT(A1,1),RIGHT(A1,2),0),IF(LE N(A1)=4,TIME(LEFT(A1,2),RIGHT(A1,2),0),A1))


--
Flintstone
------------------------------------------------------------------------
Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
View this thread: http://www.excelforum.com/showthread...hreadid=385602

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I convert an entire spread sheet form inches to mills. Ted Excel Discussion (Misc queries) 2 May 5th 05 02:02 PM
CONVERT Function Disappered in Excel Gord Dibben Excel Discussion (Misc queries) 3 April 13th 05 07:59 PM
convert decimal number to time : convert 1,59 (minutes, dec) to m agenda9533 Excel Discussion (Misc queries) 8 January 20th 05 10:24 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Convert Time...!convert tenths of a second Pape Excel Discussion (Misc queries) 2 December 16th 04 10:17 AM


All times are GMT +1. The time now is 08:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"