Keep leading zeros when opening CSV files in Microsoft Excel

When I open a CSV exported from SQLite, Microsoft Excel erases the zeros which are codes, e.g. 000.11 instead of 11.

How can I keep the leading zeros?

0

1 Answer

Import the column as Text or change the format to display the number. Reminder, the 0 at the left of number are not part of the number so 0001 is the number 1. If in your application 0001 is different from 1 then you are dealing with strings (or text) not numbers ...

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like