PC Review


Reply
Thread Tools Rate Thread

csv import into excel, preserving leading zeros in numbers

 
 
Vadim
Guest
Posts: n/a
 
      6th Jan 2006
Hi,
We have csv file automatically generated where rows look like:
"0123","04567","089".
The problem is that when Excel opens this file it puts it into cells like
123,456,89
stripping leading zeros. Is there way to generate csv file so that leading
zeros won't be stripped so it would like
0123,0456,089 when the file is opened in excel.

Thank you

Vadim



 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      6th Jan 2006
Hi Vadim,

rename the file a .txt file. Then you will have a choice for the type of
field, number or text

--
Kind regards,

Niek Otten

"Vadim" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> We have csv file automatically generated where rows look like:
> "0123","04567","089".
> The problem is that when Excel opens this file it puts it into cells like
> 123,456,89
> stripping leading zeros. Is there way to generate csv file so that leading
> zeros won't be stripped so it would like
> 0123,0456,089 when the file is opened in excel.
>
> Thank you
>
> Vadim
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel converts text cell contents to numbers (strips leading zeros)???!!! Excel Guy Microsoft Excel Discussion 1 1st Feb 2008 10:55 AM
import excel file into access and keep leading zeros for data 052 =?Utf-8?B?QmFyYg==?= Microsoft Access External Data 1 12th Jun 2007 08:55 PM
Import decimal numbers with trailing zeros into Excel =?Utf-8?B?SmFja0NhbGk=?= Microsoft Excel Programming 1 2nd Mar 2007 07:06 PM
How do I enter NUMBERS with leading zeros In Excel ie 001, 002 ? =?Utf-8?B?Ym9ibDM1MTc=?= Microsoft Excel Misc 5 29th Aug 2006 02:57 PM
Preserving leading zeros in exported text S Suddes Microsoft Access External Data 1 13th Sep 2003 09:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:12 AM.