CSV to Excel – keep leading zeros

When opening a csv file in excel, leading zero’s are displaced as below:

if the CSV file has “010101”, when opened in excel, it becomes “10101”.

To overcome this issue, store data in CSV file as =”010101″ (add ‘equals’ sign before the first quote.). If now you would open this file in excel, the leading zeros will stay as is.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.