Software Engineer
asked on
Excel: Maintaining Leading Zeroes in Comma Delimited Files
Hi:
I have read articles on retaining leading zeroes in Excel comma delimited files, using the Text Import Wizard.
But, doing so simply imports data into Excel. If you save the resulting Excel file as a comma delimited file, you still lose the leading zeroes.
Is there not a way of retaining leading zeroes in comma delimited files in Excel?
Thanks!
John
I have read articles on retaining leading zeroes in Excel comma delimited files, using the Text Import Wizard.
But, doing so simply imports data into Excel. If you save the resulting Excel file as a comma delimited file, you still lose the leading zeroes.
Is there not a way of retaining leading zeroes in comma delimited files in Excel?
Thanks!
John
If columns are formatted as text instead of applying standard (automated) formatting, you should get the desired export result.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Hi All:
Yes, the Import From Text Wizard does a nice job of formatting as text.
But, saving the resulting Excel spreadsheet as a .csv file strips out the leading zeroes again. And, if you save the resulting spreadsheet instead in .xlsx format, you no longer have a true .csv file.
John
Yes, the Import From Text Wizard does a nice job of formatting as text.
But, saving the resulting Excel spreadsheet as a .csv file strips out the leading zeroes again. And, if you save the resulting spreadsheet instead in .xlsx format, you no longer have a true .csv file.
John
Try bringing the data in with Power Query (Get and Transform). Change type to "Text", then load to table.
I really cannot see how Neeraj's comment helps to solve your issue. You told us you managed to have leading zeros on import already. Your issue is the export, and the method I told you works fine.