Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
vkushnerov
 
Posts: n/a
Default Zip Codes from excel to .csv

I have an excel spreadsheet that I need to convert to a .csv to import. One
of the columns is the zip code, including codes that start with 0. However,
whenever I convert it to .csv, it strips out the first 0 of the zip code,
thus leaving a 4 digit code. Is there a way to fix this?

Thanks!

  #2   Report Post  
IanRoy
 
Posts: n/a
Default

Not sure I can help, but your post got me curious. When I save an Excel file
containing both zip code formatted numbers and the equivalent in text format,
then opened the .csv with Notepad, the leading zeros came through from both
formats. Opening the same .csv with Excel stripped the zeros from both, and
left them in the General format. What program are wanting to import the .csv
into?

"vkushnerov" wrote:

I have an excel spreadsheet that I need to convert to a .csv to import. One
of the columns is the zip code, including codes that start with 0. However,
whenever I convert it to .csv, it strips out the first 0 of the zip code,
thus leaving a 4 digit code. Is there a way to fix this?

Thanks!

  #3   Report Post  
Jim Rech
 
Posts: n/a
Default

Excel preserves leading zeros when saved in CSV format. You should see this
if you open the file in Notepad. Opening the CSV in Excel is not a good
test because, as IanRoy said, Excel strips off leading zeros.

--
Jim Rech
Excel MVP
"vkushnerov" wrote in message
...
|I have an excel spreadsheet that I need to convert to a .csv to import.
One
| of the columns is the zip code, including codes that start with 0.
However,
| whenever I convert it to .csv, it strips out the first 0 of the zip code,
| thus leaving a 4 digit code. Is there a way to fix this?
|
| Thanks!
|


  #4   Report Post  
vkushnerov
 
Posts: n/a
Default

I needed the .csv to import the data into SalesForce - a Customer
Relationship Manager on steroids. I guess my problem was that I woudl reopen
the .csv in excel and not in textpad or notepad. Thanks to both of you who
replied.

"IanRoy" wrote:

Not sure I can help, but your post got me curious. When I save an Excel file
containing both zip code formatted numbers and the equivalent in text format,
then opened the .csv with Notepad, the leading zeros came through from both
formats. Opening the same .csv with Excel stripped the zeros from both, and
left them in the General format. What program are wanting to import the .csv
into?

"vkushnerov" wrote:

I have an excel spreadsheet that I need to convert to a .csv to import. One
of the columns is the zip code, including codes that start with 0. However,
whenever I convert it to .csv, it strips out the first 0 of the zip code,
thus leaving a 4 digit code. Is there a way to fix this?

Thanks!

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Zip Codes starting with 0 in .csv vkushnerov Excel Discussion (Misc queries) 2 February 10th 05 12:07 AM
Excel doesn't sort zip codes properly [email protected] Excel Discussion (Misc queries) 4 February 4th 05 12:30 AM
Word field codes in Excel data file Includetext mranz Excel Discussion (Misc queries) 1 December 7th 04 11:19 PM
Bar Codes in Excel bktopper Excel Discussion (Misc queries) 2 December 2nd 04 08:25 PM


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