How to keep leading zeros when opening an Excel/CSV.

Modified on Tue, 8 Sep at 1:09 PM

4 Easy Steps to Keep the Leading Zero in Excel/CSV!

When working on spreadsheets, you may need a leading zero column.
For example, let's use an ID number, if I entered the beginning of my ID "0010", Excel would automatically remove the first two zeros. To keep the leading zero in Excel, please do as follows:

  1. Right click on the column you want the leading zero to be and select "Format cells".
  2. Select "Custom" from the category list.
  3. In the "Type" field, enter how many digits you need. The SMU ID consists of 8 digits which we will use in our example below. (Note: You don't need to add quotes to the string.)
  4. Click "OK". The column now uses the format you created!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article