Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default How to open a csv file without auto converion

I have a csv file with a text field enclosed with " ", the content of the
field is numeric but with leading 0s'.
When I Start MS Excel 2003 and then open the file, the field is converted to
numeric and causes the leading 0 being dropped.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default How to open a csv file without auto converion

You may want to record a macro while doing this the first time.

Do the data import 'manually' rather than double-clicking on the CSV file or
just choosing to open it from Excel. During the process you have the option
to define the type of data that a particular column is going to be imported
as. Work through the Data Import wizard until you get to that column and
tell it to treat it as text and not General or Numeric.

To get started: choose Data from the Excel menu, then Import External Data,
then Import Data. It will try to start you out in a place you probably don't
want to be - already defined data sources. first change the type of file(s)
to display to .csv and then just browse to locate the proper .csv file and
follow your nose from there.
"Vincent" wrote:

I have a csv file with a text field enclosed with " ", the content of the
field is numeric but with leading 0s'.
When I Start MS Excel 2003 and then open the file, the field is converted to
numeric and causes the leading 0 being dropped.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How to open a csv file without auto converion

Change the extension from .csv to .txt, then the text import wizard will
allow you to specify the format of the relevant columns as text.
--
David Biddulph

"Vincent" wrote in message
...
I have a csv file with a text field enclosed with " ", the content of the
field is numeric but with leading 0s'.
When I Start MS Excel 2003 and then open the file, the field is converted
to
numeric and causes the leading 0 being dropped.



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
Auto-Open other file aposatsk Excel Discussion (Misc queries) 5 September 28th 06 09:37 PM
How to format a number cell to auto count 1 up on file open Joevee Excel Worksheet Functions 0 February 1st 06 05:00 PM
How to auto activate macro when file open ? bonzio Excel Worksheet Functions 1 December 16th 05 02:45 PM
message/dialog box auto open when excel file is activated welshwizzard Excel Discussion (Misc queries) 2 January 21st 05 10:05 PM
How to auto-refresh Pivot data when open Excel file? Julie Excel Worksheet Functions 3 November 17th 04 05:22 PM


All times are GMT +1. The time now is 07:01 AM.

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"