Converting Numbers to Time

G

Guest

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.
 
J

Jason Morin

One way:

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

Format the formula cells as time.

HTH

Jason
Atlanta, GA
 
B

BobT

=LEFT(A1,IF(A1<100000,1,2))&":"&MID(A1,IF(A1<100000,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.
 
A

Aladin Akyurek

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

where A2 houses a value like 94423.

Custom format the formula cell as:

h:mm:ss
 
R

Ron Rosenfeld

=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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top