Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MB
 
Posts: n/a
Default Converting Numbers to Time

Hello experts.

I have data as follows:
94423
94717
100523
101142

Is there a formula I could apply to change the numbers to time:
9:44:23
9:47:17
10:05:23
10:11:42

Thank you so much for your help.


--
MB
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

One way:

=REPLACE(REPLACE(A1,LEN(A1)-1,,":"),LEN(A1)-3,,":")+0

Format the formula cells as time.

HTH

Jason
Atlanta, GA

-----Original Message-----
Hello experts.

I have data as follows:
94423
94717
100523
101142

Is there a formula I could apply to change the numbers

to time:
9:44:23
9:47:17
10:05:23
10:11:42

Thank you so much for your help.


--
MB
.

  #3   Report Post  
BobT
 
Posts: n/a
Default

=LEFT(A1,IF(A1<100000,1,2))&":"&MID(A1,IF(A1<10000 0,2,3),2)
&":"&RIGHT(A1,2)
If you put all that inside of =value() it will convert to
to the excel time code, but unless you are using military
time these will all be AM.


-----Original Message-----
Hello experts.

I have data as follows:
94423
94717
100523
101142

Is there a formula I could apply to change the numbers to

time:
9:44:23
9:47:17
10:05:23
10:11:42

Thank you so much for your help.


--
MB
.

  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=TEXT(TEXT(A2,"000000"),"00\:00\:00")+0

where A2 houses a value like 94423.

Custom format the formula cell as:

h:mm:ss

MB wrote:
Hello experts.

I have data as follows:
94423
94717
100523
101142

Is there a formula I could apply to change the numbers to time:
9:44:23
9:47:17
10:05:23
10:11:42

Thank you so much for your help.


  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Sat, 19 Feb 2005 00:07:26 +0100, Aladin Akyurek wrote:

=TEXT(TEXT(A2,"000000"),"00\:00\:00")+0

where A2 houses a value like 94423.

Custom format the formula cell as:

h:mm:ss


I like that approach!

But even simpler:

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


--ron
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
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM
roundoff when converting text to numbers Jack Excel Worksheet Functions 3 January 30th 05 01:51 AM
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM
Can't stop time duration [hh]:mm:ss converting to time of day Jack Cutrone Excel Discussion (Misc queries) 7 December 27th 04 11:23 PM
Converting time to numbers DLSQestions Excel Discussion (Misc queries) 2 December 20th 04 06:07 PM


All times are GMT +1. The time now is 05:58 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"