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 Keeping lead zeros in excel text format when saving as CSV file

I am working in excel and need to import into Sage. I can create the CSV
file that is required but I lose the leading zeros from certain text
columns/fields when I convert to from excel to CSV (for example 025 becomes
25). How can I overcome this. If I edit the CSV file in Notepad will this
do the trick. If it does, this will be OK for the odd item, but I may need to
do it for hundreds of items in the same column/field and this is impractical
in Notepad.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Keeping lead zeros in excel text format when saving as CSV file

My guess is that you are not losing the leading zero when you save from
Excel to CSV (try reading the CSV in Notepad to be sure), but that you may
lose the leading zero if you read back from CSV to Excel by File/ Open or by
double-clicking on the CSV. You can read the CSV into Excel by Data/ Import
External Data, and then during the import you can choose Text as the format
for the relevant column.
--
David Biddulph

"Richard James" <Richard wrote in message
...
I am working in excel and need to import into Sage. I can create the CSV
file that is required but I lose the leading zeros from certain text
columns/fields when I convert to from excel to CSV (for example 025
becomes
25). How can I overcome this. If I edit the CSV file in Notepad will
this
do the trick. If it does, this will be OK for the odd item, but I may need
to
do it for hundreds of items in the same column/field and this is
impractical
in Notepad.



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
How to copy a number into a text cell, keeping leading zeros? Basher Bates Charts and Charting in Excel 2 February 23rd 08 03:26 PM
Excel drops my lead zeros: need 0051 not 51 Monet Excel Discussion (Misc queries) 3 December 26th 07 10:06 PM
Keep Lead Zeros Laury Excel Discussion (Misc queries) 6 April 13th 06 04:28 PM
Concatenate Text & Numbers Keeping zeros.. glynny Excel Worksheet Functions 3 February 17th 06 10:10 AM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM


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