ANS-1871 · CSV IMPORT & DATA MIGRATION
How to Prevent Excel from Reformatting CSV Data on Import
Learn the precise method to import CSV files into Excel, ensuring that leading zeros, credit card numbers, and other critical data formats are preserved.
Short answer
To prevent Excel from automatically reformatting CSV data, use the Text Import Wizard. Open a new Excel sheet, navigate to the Data tab, and use 'From Text (Legacy)' or a similar option. Configure the wizard to treat all columns as 'Text' format, ensuring data like leading zeros and credit card numbers are preserved accurately.
Scenario
When opening CSV files directly in Excel, users often encounter automatic data reformatting. This can lead to critical data loss, such as leading zeros being removed from numerical values or credit card numbers being converted into scientific notation, compromising data integrity.
Solution
To prevent Excel from reformatting data when importing a CSV file, follow these steps:
Open a new, blank Excel workbook.
Navigate to the
Datatab in the Excel ribbon. In theGet & Transform Datasection, selectFrom Text/CSVor, to access the legacy Text Import Wizard, look forFrom Text (Legacy). (Note: AccessingFrom Text (Legacy)may require enabling 'Show legacy data import wizards' in Excel Options, depending on your Excel version.)Browse to and select your CSV file, then click
Import.If the Text Import Wizard opens (typically from
From Text (Legacy)):- At Step 1, choose
Delimitedand clickNext. - At Step 2, ensure only
Commais checked as a delimiter, and uncheck any other options. ClickNext. - At Step 3, select all columns in the
Data Previewwindow. To do this, click on the first column, then holdShiftand click on the last column. All columns should now be highlighted. - With all columns selected, choose
Textas theColumn data format. - Click
Finishto import your data, preserving its original format.
- At Step 1, choose
Expert NetSuite Support
Need help with this NetSuite issue?
CSV Import & Data Migration consulting and configuration support
