Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preserve Leading Zeros when saving XL file to CSV

Status
Not open for further replies.

Fiat77

Programmer
Feb 4, 2005
63
US
We have an Excel File where all 4 columns are formatted as Text. i need to save it as a CSV File for and upload. When I save it as a CSV File, the leading zeros disappear. How can I save this file as a CSV File and preserve the leading zeros? Thanks
 
Fiat77,

You must store the numeric values as STRINGS instead of numbers, fixed length with leading zeros.

for instance....
[tt]
=TEXT(A1, "0000000")
[/tt]



Skip,
[sub]
[glasses] [red]Be advised:[/red]We know Newton's 3 Laws. But did you hear about the [red]FOURTH???[/red]
Only ONE fig per cookie![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top