Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Leading Zero in .csv format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rob@cabletechnology.com - 18 Jan 2008 14:40 GMT
I've read all the post and blogs on csv files dropping leading zero's
and still haven't found a solution. I have Excel 2002 and when I save
file as .csv it drops the leading zero. I've tried formatting cells as
text before saving as csv, importing data with cells set as text,
under custom format my version of evcel doesn't have an option for
00000 or #0000. I was told that I need to upgrade to a newer version
of excel. Any help would be greatly appriciated..
Dave Peterson - 18 Jan 2008 15:35 GMT
Don't open the .csv file in excel to check it.

Use NotePad--or some other text editor.

You'll find that the leading zeros are there.

Excel will remove them when you reopen the .csv file--not when excel saves it.

> I've read all the post and blogs on csv files dropping leading zero's
> and still haven't found a solution. I have Excel 2002 and when I save
[quoted text clipped - 3 lines]
> 00000 or #0000. I was told that I need to upgrade to a newer version
> of excel. Any help would be greatly appriciated..

Signature

Dave Peterson

rob@cabletechnology.com - 18 Jan 2008 15:43 GMT
> Don't open the .csv file in excel to check it.
>
[quoted text clipped - 17 lines]
>
> Dave Peterson

Okay,  If I open the csv the zero is gone. If I open the file in
notepad the zero is present. Does that mean if I upload the csv file
to my database that the number will be whole and the zero present?

Thanks Dave..
Dave Peterson - 18 Jan 2008 15:51 GMT
I would think it would depend on how your database importing works.

<<snipped>>

> Okay,  If I open the csv the zero is gone. If I open the file in
> notepad the zero is present. Does that mean if I upload the csv file
> to my database that the number will be whole and the zero present?
>
> Thanks Dave..

Signature

Dave Peterson

Ed - 18 Jan 2008 19:33 GMT
Dave,

I'm having the same problem. Is there any way to make Excel open the
.csv file containing a
string of numeric characters with a leading 0, e.g., "03" , and have
it saved in a cell as text instead of
numeric?

TIA

Ed

>I would think it would depend on how your database importing works.
>
[quoted text clipped - 6 lines]
>>
>> Thanks Dave..
Dave Peterson - 18 Jan 2008 21:31 GMT
Rename the .csv file to .txt

When you do file|open, you'll be prompted in the text to columns wizard on how
each field should be treated.  You can choose text for the fields that should
retain the leading 0's.

Alternatively, you could use:
Data|Import External data (xl2003 menu system) and follow that wizard.

> Dave,
>
[quoted text clipped - 22 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.