Skip to main content
Mitratech Success Center

Client Support Center

Need help? Click a product group below to select your application and get access to knowledge articles, webinars, training content, and release notes or to contact our support team.

Authorized users - log in to create a ticket, view tickets status and check your success plan details.

 

Resolution for Opening .csv File Where Leading Zeroes are Removed

ISSUE:  Leading zeros are removed from .csv file when opening with Excel.  This is a function of Excel that is invoked when data is pushed directly into a spreadsheet using the default column formatting.

SOLUTION:

1. Open Excel.

2. Click on the Data tab and under the Get External Data section, select From Text.

clipboard_e87d8944c7090196989c7dfbbd836ce42.png

3.  At the next prompt, select the previously saved.csv file and click Import.

clipboard_efa64b1c03e1a828f55c4c595818f4ea8.png

 

4.  In Step 1 of the Text Import Wizard dialog box, select Delimited box in the Original data type section and Next.

clipboard_ecf34153ae34e94d2448c1d5b12049806.png  

 

5.  In Step 2 of the Text Import Wizard dialog box, uncheck the Tab box and check the Comma box in the Delimiters section and hit Next.

clipboard_e2ce37af91cfa8628161316156a1efef1.png

 

6.  In Step 3 of the Text Import Wizard dialog box, select the column that contains leading zeros and click on the Text option in the Column data format section.  Since all columns are imported with General formatting, you can format other columns in the same fashion.  When complete, click Finish.

clipboard_ee48cba2a220a871802858d9e73baae3c.png

 

7. In the next Import Data dialog box, select New worksheet, and click OK.

clipboard_e220bf14edb215b8a2b23dc27c698a5f3.png

 

8. The data will import to Excel with the leading zeros.

clipboard_e83a59c280b47eb5f19d4321bb6c6a6fe.png

9. When saving the file, save in .csv format.

 

  • Was this article helpful?