Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Import CSV: Open, Preview, and Fix Data

· 6 min read · Home Tech

In this article
  1. What a CSV file contains
  2. Import with the Data tab
  3. Choose the delimiter and data types
  4. Open a CSV directly
  5. Common import problems and fixes
  6. Refresh and save imported data
  7. Frequently Asked Questions

To import a CSV file into Excel for Microsoft 365 on Windows, select Data > From Text/CSV, choose the file, review the preview and settings, then select Load. For a quick one-time view, you can also open the CSV directly in Excel, but importing through the Data tab gives you more control over delimiters, data types, and refreshes.

What a CSV file contains

CSV stands for comma-separated values. It is a plain-text format for tabular data: each line usually represents a row, and separators divide fields into columns. Despite the name, a CSV file can use a delimiter other than a comma, such as a semicolon or tab. The file does not preserve Excel formatting, formulas, multiple worksheets, or other workbook features.

A CSV may contain text, numbers, dates, and empty fields, but it does not reliably tell Excel how to interpret them. For instance, a value such as 00127 could be a five-digit code or the number 127 with leading zeros. Excel may treat it as a number and remove those zeros unless you import the column as text.

Import with the Data tab

Use this method when the file contains important identifiers, dates, long numbers, or values that Excel might otherwise reinterpret. The import process uses Power Query, Excel’s built-in tool for connecting to and shaping data.

  1. Open a blank workbook or the workbook where you want the data.
  2. Select Data > From Text/CSV.
  3. Find and select the CSV file, then choose Import.
  4. In the preview window, check the delimiter and confirm that the columns line up correctly. Choose a different delimiter if the preview is incorrect.
  5. Select Transform Data if you need to adjust column types or remove unwanted rows before loading. Otherwise, select Load to add the data to the workbook.

To place the results somewhere specific, use the arrow next to Load and choose Load To, then select a destination. Depending on the options shown, you can load the data as a table, create a connection, or choose a worksheet location. The exact dialog can vary with the workbook and Excel build.

Choose the delimiter and data types

The delimiter marks where one field ends and the next begins. If a file uses semicolons but Excel expects commas, a whole row may appear in one column. In the preview, choose the delimiter that produces the intended columns. A well-formed CSV can also put quotation marks around fields containing the delimiter, for example 42,"Portland, Oregon",Active. In that row, the comma inside the quoted place name belongs to the field, not to the column boundary.

Pay particular attention to columns that contain codes, dates, or large numeric values. In Power Query, select Transform Data, select a column, and use the data type control to assign the appropriate type. Set codes such as postal codes, product IDs, or account numbers to Text when their digits must be preserved exactly. For dates, check that the file’s date order and regional format are understood correctly: a value such as 03/04/2026 could mean March 4 or April 3 in different conventions.

Excel worksheets have a limit of 1,048,576 rows and 16,384 columns. If the CSV is larger, it cannot fit entirely on one worksheet; consider loading or processing it with Power Query or another data tool rather than assuming all rows were imported.

Open a CSV directly

For a simple file that needs no special handling, open Excel and select File > Open, browse to the CSV, and open it. You can also open the file from File Explorer if CSV files are associated with Excel. Excel will display the data in a worksheet, but it may automatically infer types and convert values. This can be convenient for a quick inspection, yet risky when exact text matters.

Opening a CSV does not turn it into a full-featured Excel workbook. If you make changes and want to keep formulas, formatting, multiple sheets, or other workbook features, use File > Save As and save a copy as an Excel Workbook (.xlsx). If you save back to CSV, Excel warns that some workbook features may be lost because CSV stores only text data for one sheet.

Common import problems and fixes

  • Everything appears in one column: Reimport with Data > From Text/CSV and select the correct delimiter. Check whether the file uses semicolons, tabs, or another separator.
  • Leading zeros disappear: Import the affected field as Text before loading. Changing a numeric cell’s display format afterward may show zeros, but it does not restore digits that were already discarded.
  • Dates are reversed or misread: Set the column’s type using the correct locale in Power Query, and verify several values against the source. Do not assume the computer’s regional setting matches the file’s format.
  • Accented characters look wrong: The file may use an encoding Excel did not detect. Use the text/CSV import preview and select the appropriate file origin or encoding when available, then check the preview before loading.
  • Numbers display in scientific notation: Long digit strings may have been treated as numbers. Import identifiers as Text; Excel’s numeric precision is limited, so converting a long identifier after import may not recover its original digits.

When the preview itself is garbled, the issue may be in the source file’s encoding, delimiter, or quoting rather than in the worksheet. If possible, check the CSV in a plain-text editor or request a clean export from the system that created it.

Refresh and save imported data

When data is loaded through Power Query, Excel can retain the connection and transformation steps. If the source CSV changes, select a cell in the imported table and choose Data > Refresh All to update connected data. If the file was moved or renamed, Excel may be unable to find it; edit the source in the query settings or repeat the import with the new path.

Keep the original CSV unchanged when it is your source of record, and save analysis or cleaned data in an .xlsx workbook. A CSV export generally contains one sheet’s values, not the workbook’s formulas, formatting, or query setup. If another program needs a CSV, save a separate export rather than overwriting the workbook you use for analysis.

Frequently Asked Questions

How do I import a CSV without losing leading zeros?
Use Data > From Text/CSV, choose Transform Data, and set the identifier column to Text before loading. This prevents Excel from interpreting values such as 00127 as the number 127.

Can I import a CSV into an existing worksheet?
Yes. Use the arrow next to Load, select Load To, and choose a destination such as an existing worksheet location when that option is available. Check that the destination area is empty enough to avoid overwriting existing data.

Why does Excel put my CSV data in one column?
The selected delimiter probably does not match the file. Reimport it and choose the separator used by the source, such as comma, semicolon, or tab. Quoted fields may contain delimiter characters without starting a new column.

How do I open a CSV in Excel for Mac?
In current Excel for Mac, use Data > From Text/CSV when available to review import options, or use File > Open for a quick opening. Menu options and import controls can differ by Mac version; inspect the preview and verify text, dates, and delimiters before relying on the results.

What is the difference between opening and importing a CSV?
Opening is a quick way to view the file, and Excel may automatically convert values. Importing through the Data tab provides a preview and lets you control how fields are parsed and typed; it can also retain a refreshable connection.