zero value

wan_gabriel

New Member
Joined
Feb 5, 2006
Messages
44
I am using Excel 2007 and I need to transfer a certain file into a .csv format as the .csv data will then be loaded onto another system (somehow, the system can only read a .csv format).

Some of the columns has 8 digits number but it has zeroes at the start of the string of numbers and the system must be able to read the zeroes in front. When reformating the numbers, the zeroes appear but when the file is saved and reopen, it defaults back to its original format - where the zeroes disappear. Using ' in front of the zeroes will cause the data to be read incorrectly (so that method is a "no") and changing the "excel" options is also not working.

Am I missing something or it simply cannot be done?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
a CSV format file cannot hold numbers with leading zeros. So, it simply cannot be done. :mad:
 
Upvote 0
Some of the columns has 8 digits number but it has zeroes at the start of the string of numbers and the system must be able to read the zeroes in front.


If there are leading zeros, then this is text, not a number.

You may be looking for a program such as CSVed

CSVed allows you to manipulate any CSV file, separated with any separator. The contents of the CSV file is visible in a list view window that allows you to easily edit, add, insert, delete and move the items, as if they were in a database table. You can delete rows and add columns or rearrange the column order. In addition, you can remove duplicates and repair files or use the built in search features to find specific records. CSVed also offers search and replace, export to XML and more. If you are frequently working with CSV files, this is an extremely handy tool!
 
Upvote 0

Forum statistics

Threads
1,214,515
Messages
6,119,973
Members
448,933
Latest member
Bluedbw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top