Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andibevan
 
Posts: n/a
Default Function to convert Time String to Time

Hi there,

What excel formula would I use to convert a number string i.e. 143254 to a
time string, i.e. 14:32:54

I need it to be as a formula so it is automated and not a manual process.

Thanks in advance

Andi


  #2   Report Post  
Ken Wright
 
Posts: n/a
Default

With your value in A1, in say B1

=TIME(LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2))

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Andibevan" wrote in message
...
Hi there,

What excel formula would I use to convert a number string i.e. 143254 to a
time string, i.e. 14:32:54

I need it to be as a formula so it is automated and not a manual process.

Thanks in advance

Andi




  #3   Report Post  
Andibevan
 
Posts: n/a
Default

Thanks Mangesh :-)


"Mangesh Yadav" wrote in message
...
assuming that your string is in A1, use:

=TIME(LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2))

format as time

Mangesh



"Andibevan" wrote in message
...
Hi there,

What excel formula would I use to convert a number string i.e. 143254 to

a
time string, i.e. 14:32:54

I need it to be as a formula so it is automated and not a manual

process.

Thanks in advance

Andi






  #4   Report Post  
Dodo
 
Posts: n/a
Default

"Andibevan" wrote in
:

What excel formula would I use to convert a number string i.e. 143254
to a time string, i.e. 14:32:54


=TIME(LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2))

and set the cell format to 13:30:55

--

It is I, DeauDeau
(Free after monsieur Leclerc in 'Allo, 'allo)
  #5   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

assuming that your string is in A1, use:

=TIME(LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2))

format as time

Mangesh



"Andibevan" wrote in message
...
Hi there,

What excel formula would I use to convert a number string i.e. 143254 to a
time string, i.e. 14:32:54

I need it to be as a formula so it is automated and not a manual process.

Thanks in advance

Andi






  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

=TIME(INT(A21/10000),INT((A21-INT(A21/10000)*10000)/100),MOD(A21,100))

--
HTH

Bob Phillips

"Andibevan" wrote in message
...
Hi there,

What excel formula would I use to convert a number string i.e. 143254 to a
time string, i.e. 14:32:54

I need it to be as a formula so it is automated and not a manual process.

Thanks in advance

Andi




  #7   Report Post  
Bob Phillips
 
Posts: n/a
Default

Note the other answer will fail on say 91015, they will give 19:01:15.

If you are going to use the string method you should use

=TIME(LEFT(A1,LEN(A1)-4),MID(A1,3,2),RIGHT(A1,2))

--
HTH

Bob Phillips

"Andibevan" wrote in message
...
Thanks Mangesh :-)


"Mangesh Yadav" wrote in message
...
assuming that your string is in A1, use:

=TIME(LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2))

format as time

Mangesh



"Andibevan" wrote in message
...
Hi there,

What excel formula would I use to convert a number string i.e. 143254

to
a
time string, i.e. 14:32:54

I need it to be as a formula so it is automated and not a manual

process.

Thanks in advance

Andi








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
convert interval to various separate date , time, hr, minutes Todd F. Excel Worksheet Functions 4 July 12th 05 07:25 PM
Time Function Donovan Excel Discussion (Misc queries) 2 June 3rd 05 06:41 PM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM
CONVERT Function Disappered in Excel Gord Dibben Excel Discussion (Misc queries) 3 April 13th 05 07:59 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 01:06 AM.

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"