Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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... |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Automatically retain zero's when importing csv files
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Importing External Data From Several Files | Excel Discussion (Misc queries) | |||
Leading Zeros in .CSV files | Excel Discussion (Misc queries) | |||
retain leading zeros when importing | Excel Discussion (Misc queries) | |||
Importing txt csv files into Excel greater than 65k lines | Excel Discussion (Misc queries) | |||
retain leading zeros in number format | Excel Discussion (Misc queries) |