Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Automatically retain zero's when importing csv files

I regularly have to extract data from various systems as csv which
automatically open in Excel. However, when this happens automatically leading
zero's are lost as Excel seems to assume that data is number and not text. I
can intervene manually and do the usual 'save as txt' or 'use import wizard
to format cells at text' etc. However, these extracts are meant to run
without any human intervantion. Does anyone know of a way of setting Excel to
always open formatted as text or a script that can be used within a csv
extract that would pre-format Excel? Here's hoping...
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Automatically retain zero's when importing csv files

Bernard, Yes we have control. I will give it a try and revert. Thanks for the
advice. Peter

"Bernard Liengme" wrote:

Do you have control of the app that makes the CSV? If so then precede the
quasi-numeric fields with a single apostrophe.
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"The Big P" <The Big wrote in message
...
I regularly have to extract data from various systems as csv which
automatically open in Excel. However, when this happens automatically
leading
zero's are lost as Excel seems to assume that data is number and not text.
I
can intervene manually and do the usual 'save as txt' or 'use import
wizard
to format cells at text' etc. However, these extracts are meant to run
without any human intervantion. Does anyone know of a way of setting Excel
to
always open formatted as text or a script that can be used within a csv
extract that would pre-format Excel? Here's hoping...




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
Importing External Data From Several Files Eric O'Connor Excel Discussion (Misc queries) 3 September 15th 06 06:55 PM
Leading Zeros in .CSV files klafert Excel Discussion (Misc queries) 8 August 30th 06 08:27 PM
retain leading zeros when importing LeePotts Excel Discussion (Misc queries) 1 December 5th 05 07:16 PM
Importing txt csv files into Excel greater than 65k lines strippier Excel Discussion (Misc queries) 1 April 20th 05 06:34 PM
retain leading zeros in number format Jeff Excel Discussion (Misc queries) 5 February 22nd 05 09:24 PM


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