Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.setup
Gary N
 
Posts: n/a
Default leading zero truncate - how to prevent ?

When importing a .csv file where the data is encapulated (each item of data
is enclosed in double quotes) excel strips off the leading zeros.

Is there any way of preventing this from happening ?

The issue particularly nasty in that it removes preceeding zeros from a
zip-code, then the US postal service will not deliver.

Any ideas ?

  #2   Report Post  
Posted to microsoft.public.excel.setup
David McRitchie
 
Posts: n/a
Default leading zero truncate - how to prevent ?

Hi Gary,
I would suggest fixing 5-digit zip codes with a macro, see
http://www.mvps.org/dmcritchie/excel/join.htm#fixUSzip5

You can try changing the .csv extension to .txt and then
during the Text Import Wizard indicate that the column is text.
It probably won't work though.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Gary N" <Gary wrote in message ...
When importing a .csv file where the data is encapulated (each item of data
is enclosed in double quotes) excel strips off the leading zeros.

Is there any way of preventing this from happening ?

The issue particularly nasty in that it removes preceeding zeros from a
zip-code, then the US postal service will not deliver.

Any ideas ?



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
Leading Zeros Karen Excel Discussion (Misc queries) 3 January 10th 06 09:50 PM
How to prevent Excel from deleting leading zeros? ljCharlie Excel Discussion (Misc queries) 1 October 31st 05 10:04 PM
Remove leading space Karidre Excel Worksheet Functions 4 October 24th 05 03:39 PM
Concatenation with leading zeros Laura K Excel Worksheet Functions 6 August 27th 05 11:55 PM
I WANT to truncate my leading zeros [email protected] Excel Discussion (Misc queries) 5 April 21st 05 02:19 AM


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