converting numbers to time

F

FishandChips

I have a list of numbers:

900
1030
830 etc.

I need these in the format:

09:00:00
10:30:00
08:30:00 etc

I have tried text to columns but without the 0 before 830 the fixed width
line doesnt fall right.

Very stuck on this so any help would be gratefully recieved (otherwise I
have alot of work on my hands!!)
 
R

Rob

Assumes C5 has 900 and Time format set to 00:00:00

HTH Rob

=TIME(INT(C5/100),MOD(C5,100),0)
 
M

Mike H

Hi,

Assuming your numbers are in a1 down try this

=VALUE(LEFT(A1,LEN(A1)-2)&":"&RIGHT(A1,2))

Format as time
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

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

Similar Threads


Top