Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Time Format Conversion

Hello everyone, I have a spreadsheet produced from the reporter of a system
we use. It formats the dates and times as 20070131 and 1530 which I need to
convert to a date/time format excel recognizes. I have been able to use Text
to Columns to break up the date and reassemble it using a formula. The time
field however is difficult because it will populate as a general format
something like this:

DATE TIME
20070823 12 ( which is 00:12 )
20070823 123 ( which is 01:23 )
20070823 1425 ( which is 14:25 )

If I try to use Text to Columns on the time field it will left justify
making it impossible. I've also tried a custom format which looks good on the
sheet and will display 12 as 0012 for example, but the Text to Columns
function does not mind the zero's. Is there a way for me to convert a general
field as shown in my example to a time field formated as say 00:12 or 14:25?

Thanks for any help!!

--
If you can read this, thank a Teacher...
If your reading it in english, thank a Veteran!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Time Format Conversion

To convert your time values, use =TIME(INT(A1/100),MOD(A1,100),0)
format the cell with Custom Format [h]:mm
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Telobamipada" wrote in message
...
Hello everyone, I have a spreadsheet produced from the reporter of a
system
we use. It formats the dates and times as 20070131 and 1530 which I need
to
convert to a date/time format excel recognizes. I have been able to use
Text
to Columns to break up the date and reassemble it using a formula. The
time
field however is difficult because it will populate as a general format
something like this:

DATE TIME
20070823 12 ( which is 00:12 )
20070823 123 ( which is 01:23 )
20070823 1425 ( which is 14:25 )

If I try to use Text to Columns on the time field it will left justify
making it impossible. I've also tried a custom format which looks good on
the
sheet and will display 12 as 0012 for example, but the Text to Columns
function does not mind the zero's. Is there a way for me to convert a
general
field as shown in my example to a time field formated as say 00:12 or
14:25?

Thanks for any help!!

--
If you can read this, thank a Teacher...
If your reading it in english, thank a Veteran!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Time Format Conversion

Thanks Bernard! Perfect...
--
If you can read this, thank a Teacher...
If your reading it in english, thank a Veteran!


"Bernard Liengme" wrote:

To convert your time values, use =TIME(INT(A1/100),MOD(A1,100),0)
format the cell with Custom Format [h]:mm
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Telobamipada" wrote in message
...
Hello everyone, I have a spreadsheet produced from the reporter of a
system
we use. It formats the dates and times as 20070131 and 1530 which I need
to
convert to a date/time format excel recognizes. I have been able to use
Text
to Columns to break up the date and reassemble it using a formula. The
time
field however is difficult because it will populate as a general format
something like this:

DATE TIME
20070823 12 ( which is 00:12 )
20070823 123 ( which is 01:23 )
20070823 1425 ( which is 14:25 )

If I try to use Text to Columns on the time field it will left justify
making it impossible. I've also tried a custom format which looks good on
the
sheet and will display 12 as 0012 for example, but the Text to Columns
function does not mind the zero's. Is there a way for me to convert a
general
field as shown in my example to a time field formated as say 00:12 or
14:25?

Thanks for any help!!

--
If you can read this, thank a Teacher...
If your reading it in english, thank a Veteran!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Time Format Conversion

If your grammatical construction is incorrect, don't thank either one of them.


Gord Dibben MS Excel MVP

On Thu, 23 Aug 2007 13:06:02 -0700, Telobamipada
wrote:

If you can read this, thank a Teacher...
If your reading it in english, thank a Veteran!


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
Time conversion Seaman Excel Worksheet Functions 1 February 22nd 07 02:47 PM
time conversion thisguy Excel Discussion (Misc queries) 2 January 16th 07 04:29 AM
Time conversion PivotMan Excel Worksheet Functions 1 October 14th 05 12:00 AM
Time conversion Dave Excel Discussion (Misc queries) 1 September 12th 05 01:49 PM
time conversion Steane Excel Discussion (Misc queries) 3 August 18th 05 02:34 AM


All times are GMT +1. The time now is 09:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"