Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mic Mic is offline
external usenet poster
 
Posts: 17
Default Add leading 0 to csv import text/time H:MM

Hi,
I did alot of searching but did not find this one exactly:

I am importing a csv file into excel as text.
The column in question is a time value formated like this, 8:30
The value needs to look like this, 08:30 for a whole column.
Any way to do this?
Thanks
Mic




  #2   Report Post  
Posted to microsoft.public.excel.misc
Mic Mic is offline
external usenet poster
 
Posts: 17
Default Add leading 0 to csv import text/time H:MM

Forgot to add,
Excel 2000
system creating csv file does not have the leading zero


"Mic" wrote:

Hi,
I did alot of searching but did not find this one exactly:

I am importing a csv file into excel as text.
The column in question is a time value formated like this, 8:30
The value needs to look like this, 08:30 for a whole column.
Any way to do this?
Thanks
Mic




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Add leading 0 to csv import text/time H:MM

If the file retains its csv extension, by default excel will treat the data
as time, not as text. If the file has been renamed to txt, the text import
wizard allows you to specify the format of each column on import.

In either case, if it is treated as time but not formatted as you want it,
Format/ Cells/ will allow you to specify hh:mm
--
David Biddulph

"Mic" wrote in message
...
Hi,
I did alot of searching but did not find this one exactly:

I am importing a csv file into excel as text.
The column in question is a time value formated like this, 8:30
The value needs to look like this, 08:30 for a whole column.
Any way to do this?
Thanks
Mic






  #4   Report Post  
Posted to microsoft.public.excel.misc
Mic Mic is offline
external usenet poster
 
Posts: 17
Default Add leading 0 to csv import text/time H:MM

Unfortunatly, HH:MM will not work since a 24 hour clock would not work in
this instance:
I would like to add the leading 0, but not to have 08:30 pm not equal= to
20:30.

"David Biddulph" wrote:

If the file retains its csv extension, by default excel will treat the data
as time, not as text. If the file has been renamed to txt, the text import
wizard allows you to specify the format of each column on import.

In either case, if it is treated as time but not formatted as you want it,
Format/ Cells/ will allow you to specify hh:mm
--
David Biddulph

"Mic" wrote in message
...
Hi,
I did alot of searching but did not find this one exactly:

I am importing a csv file into excel as text.
The column in question is a time value formated like this, 8:30
The value needs to look like this, 08:30 for a whole column.
Any way to do this?
Thanks
Mic







  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Add leading 0 to csv import text/time H:MM

hh:mm AM/PM
--
David Biddulph

"Mic" wrote in message
...
Unfortunatly, HH:MM will not work since a 24 hour clock would not work in
this instance:
I would like to add the leading 0, but not to have 08:30 pm not equal= to
20:30.


"David Biddulph" wrote:

If the file retains its csv extension, by default excel will treat the
data
as time, not as text. If the file has been renamed to txt, the text
import
wizard allows you to specify the format of each column on import.

In either case, if it is treated as time but not formatted as you want
it,
Format/ Cells/ will allow you to specify hh:mm
--
David Biddulph


"Mic" wrote in message
...
Hi,
I did alot of searching but did not find this one exactly:

I am importing a csv file into excel as text.
The column in question is a time value formated like this, 8:30
The value needs to look like this, 08:30 for a whole column.
Any way to do this?
Thanks
Mic





  #6   Report Post  
Posted to microsoft.public.excel.misc
Mic Mic is offline
external usenet poster
 
Posts: 17
Default Add leading 0 to csv import text/time H:MM

OMG so simple, Thanks

"David Biddulph" wrote:

hh:mm AM/PM
--
David Biddulph

"Mic" wrote in message
...
Unfortunatly, HH:MM will not work since a 24 hour clock would not work in
this instance:
I would like to add the leading 0, but not to have 08:30 pm not equal= to
20:30.


"David Biddulph" wrote:

If the file retains its csv extension, by default excel will treat the
data
as time, not as text. If the file has been renamed to txt, the text
import
wizard allows you to specify the format of each column on import.

In either case, if it is treated as time but not formatted as you want
it,
Format/ Cells/ will allow you to specify hh:mm
--
David Biddulph


"Mic" wrote in message
...
Hi,
I did alot of searching but did not find this one exactly:

I am importing a csv file into excel as text.
The column in question is a time value formated like this, 8:30
The value needs to look like this, 08:30 for a whole column.
Any way to do this?
Thanks
Mic




  #7   Report Post  
Posted to microsoft.public.excel.misc
Mic Mic is offline
external usenet poster
 
Posts: 17
Default Add leading 0 to csv import text/time H:MM

Now is there a way to get rid of the AM and PM that is displayed?

"Mic" wrote:

Hi,
I did alot of searching but did not find this one exactly:

I am importing a csv file into excel as text.
The column in question is a time value formated like this, 8:30
The value needs to look like this, 08:30 for a whole column.
Any way to do this?
Thanks
Mic




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
How can I prefill a text field with leading 0s? Sweetetc Excel Worksheet Functions 4 February 24th 06 07:04 PM
Remove text leading zero in text string Cheryl B. Excel Worksheet Functions 5 May 29th 05 07:46 PM
Remove text leading zero in text string Peo Sjoblom Excel Worksheet Functions 0 May 27th 05 09:59 PM
Adding Leading Zeros to Text Jenn Excel Discussion (Misc queries) 4 January 12th 05 06:51 PM
numbers and text in Excel to read as text keeping the leading zer. Ralph Excel Discussion (Misc queries) 2 December 10th 04 07:05 PM


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