Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default converting numbers to time

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!!)
  #2   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 234
Default converting numbers to time

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

HTH Rob

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

"FishandChips" wrote in message
...
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!!)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default converting numbers to time

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.


"FishandChips" wrote:

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!!)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default converting numbers to time

900
1030
830 etc.


What times do those represent?

Is 900 9:00 AM or 9:00 PM
Is 1030 10:30 AM or 10:30 PM?
etc

--
Biff
Microsoft Excel MVP


"FishandChips" wrote in message
...
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!!)



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default converting numbers to time

=--TEXT(A2,"00\:00") and format as time.
--
David Biddulph

FishandChips wrote:
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!!)



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 Standard Time to Military Time in Excel mtvschultz Excel Discussion (Misc queries) 3 May 5th 23 11:42 AM
formula for converting military time to standard time, etc Pattio Excel Discussion (Misc queries) 8 February 17th 08 01:12 AM
Converting date/time serial values to cumulative time totals... Kevin B Excel Discussion (Misc queries) 4 October 18th 07 05:05 PM
Converting Numbers to Time MB Excel Worksheet Functions 4 February 19th 05 02:39 AM
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 09:37 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"