Data Import & Export

Fix CSV Data Importing into Wrong Columns in Excel

Steven ParkerSteven Parker Nov 13, 2026 868 views

Question details

The user needs to import CSV data into the correct Excel columns and investigate unexpected wrapping.

Fix CSV Data Importing into Wrong Columns in Excel
Product
Excel for Microsoft 365
Device & OS
not provided
Scenario
A user imports a CSV file into an Excel worksheet and expects each field to appear in its intended column.
Observed behavior
Some data appears in incorrect columns or wraps unexpectedly, depending on the file format and import method.
Before you start

Open the CSV file in a text editor to check whether fields are separated by commas, semicolons, tabs, or another delimiter. Check whether the file instead uses fixed-width fields and whether text containing delimiters is enclosed in quotes.

Solution 1Recommended

Import the CSV with Power Query and set the delimiter

Use Power Query when a delimited file opens with fields in the wrong columns or with incorrect data types.

1
Open the import dialog

In Excel, select Data > From Text/CSV, choose the CSV file, and select Import.

2
Check the preview

In the import preview, choose the delimiter used in the file and check that the fields appear in the expected columns.

3
Set column types

Select Transform Data to open Power Query. Select each column and use its data type control to set the appropriate type, such as Text for identifiers with leading zeros.

4
Load the result

Select Home > Close & Load to place the imported data in a worksheet. Check the resulting columns against the source file.

Import the CSV with Power Query and set the delimiter
Check quoted fields: A delimiter inside a properly quoted field should remain part of that field. If the preview is still incorrect, inspect the source file for missing or inconsistent quotes.
Import CSV files with WPS

Import CSV data into WPS Spreadsheets

Use the text import options in WPS Spreadsheets to preview a CSV file, select its delimiter, and place fields in separate columns.

  1. 1. Open a spreadsheet: Launch WPS Spreadsheets and open a new workbook.
  2. 2. Start the import: Go to the Data tab and choose the text or data import option, then select your CSV file. The option name may vary by WPS version.
  3. 3. Review the fields: In the import wizard, select the delimiter used by the file and check the column preview. Set column formats where needed.
  4. 4. Finish and save: Complete the import, check the worksheet, and use File > Save As to save it in a format such as XLSX.
Preview delimited data before placing it in columnsSet suitable column formats during importOpen and save Microsoft Excel formats such as XLSXUse a familiar spreadsheet interface for free
microsoft office alternative - wps office

Frequently Asked Questions

Why does my CSV open in the wrong columns?

Excel may have detected the wrong delimiter, or the file may contain inconsistent quoting. Open the file in a text editor, then use Data > From Text/CSV and choose the delimiter that matches the file.

How can I keep leading zeros when importing a CSV?

In Data > From Text/CSV, select Transform Data. In Power Query, set the relevant column's data type to Text before choosing Close & Load.

How do I stop imported text from wrapping in a cell?

Select the affected cells and toggle Home > Wrap Text off. If the text still contains line breaks, check the source field for actual line-break characters.

Can Excel import a file with fixed-width fields?

Where available, enable From Text (Legacy) under File > Options > Data, then select Data > Get Data > Legacy Wizards > From Text (Legacy). Choose Fixed width and set the column breaks in the wizard.