Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to prevent leading zero's from being dropped from a CSV file

I have an excel spreadsheet that is formatted into a CSV file. When the CSV
file is created, the leading zeros are dropped. How can I prevent this from
happening.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to prevent leading zero's from being dropped from a CSV file

Open the CSV file using Notepad to check if the leading zeros are
there. If they are, then rename the file to have an extension .txt,
then from within Excel do File | Open - the Data Import Wizard will
start automatically, and here (on the 3rd panel) you can specify which
fields you want to be treated as Text.

Hope this helps.

Pete

On Dec 18, 4:23*pm, Fun In The Sun <Fun In The Sun
@discussions.microsoft.com wrote:
I have an excel spreadsheet that is formatted into a CSV file. *When the CSV
file is created, the leading zeros are dropped. *How can I prevent this from
happening.


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 Zero's in Excel nobby Excel Discussion (Misc queries) 9 November 13th 08 10:05 PM
Leading Zero's LascaJ Excel Discussion (Misc queries) 1 October 28th 08 06:05 PM
How to add leading zero's LINDA Excel Worksheet Functions 1 December 12th 06 08:36 PM
Leading zeroes get dropped when converted to text Jason Grunert Excel Discussion (Misc queries) 8 August 4th 06 09:42 PM
Leading zero's elwyn Excel Discussion (Misc queries) 1 August 14th 05 12:37 AM


All times are GMT +1. The time now is 10:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"