ElyxAI
import export

How to Import CSV File

Shortcut:Ctrl+O
Excel 2016Excel 2019Excel 2021Excel 365Excel Online

Learn to import CSV files into Excel seamlessly. This tutorial covers opening CSV files, using the Text Import Wizard, and handling data formatting. CSV imports are essential for consolidating data from multiple sources, databases, and external systems into a single spreadsheet for analysis and reporting.

Why This Matters

CSV imports are critical for data consolidation from databases, APIs, and external systems, saving hours of manual data entry. This skill enables efficient workflow automation and ensures data accuracy across organizational processes.

Prerequisites

  • Basic Excel navigation and familiarity with spreadsheet layout
  • A CSV file saved locally or accessible on your computer
  • Understanding of delimiters (comma, tab, semicolon)

Step-by-Step Instructions

1

Open Excel and access the import dialog

Launch Excel and go to File > Open. Alternatively, use Ctrl+O to open the file browser dialog directly.

2

Locate and select your CSV file

Browse to the folder containing your CSV file, select it, and click Open. Excel will automatically launch the Text Import Wizard.

3

Configure delimiter settings in the Text Import Wizard

In Step 1 of the wizard, select the file origin encoding. In Step 2, choose the delimiter (comma, tab, semicolon) that matches your CSV structure and preview the data layout.

4

Review data format and column specifications

In Step 3, verify column data types (General, Text, Date). Change any column format by selecting it and choosing the appropriate type from the dropdown.

5

Complete the import and save your workbook

Click Finish to import the CSV data into your spreadsheet. Go to File > Save As and save the file as .xlsx or .xls format to preserve your work.

Alternative Methods

Drag and drop import

Simply drag a CSV file from Windows Explorer directly into an Excel window. Excel will attempt to open it using default delimiter settings, though you may need manual adjustment.

Copy and paste method

Open the CSV file in Notepad, select all content (Ctrl+A), copy (Ctrl+C), then paste into Excel using Paste Special (Ctrl+Shift+V) for more formatting control.

Use Data > Get & Transform Data

In Excel 365, navigate to Data > Get Data > From File > From CSV for advanced query editing and transformation options before importing.

Tips & Tricks

  • Always preview your data in the Text Import Wizard before completing the import to catch delimiter mismatches early.
  • Save CSV files as Excel format (.xlsx) immediately after import to prevent accidental CSV overwrites and maintain compatibility.
  • Use the Data > Text to Columns feature post-import if delimiter detection fails initially.
  • Check for leading/trailing spaces in CSV data and use Find & Replace (Ctrl+H) to clean them up after import.

Pro Tips

  • Create a template workbook with pre-formatted columns and formulas, then import CSV data regularly to maintain consistent structure.
  • Use conditional formatting rules after import to highlight data anomalies and verify import accuracy automatically.
  • Store CSV imports in separate worksheets, then use VLOOKUP or INDEX/MATCH to reference them in your main analysis sheet for clean data organization.

Troubleshooting

CSV file opens in Notepad instead of Excel

Right-click the CSV file, select Open With > Excel, or use File > Open in Excel and browse to the file manually.

Text Import Wizard doesn't appear

This occurs when CSV is set as default to open in another application. In File > Open, select the CSV file, click the dropdown arrow next to Open, and choose Open With > Excel.

Imported data shows leading apostrophes in text columns

The column was formatted as Text instead of General. Select the column and use Data > Text to Columns > Next > Next > Choose General format > Finish.

Numbers are stored as text after import

In Step 3 of the Text Import Wizard, select the affected columns and change their format from Text to General or Number before completing the import.

Related Excel Formulas

Frequently Asked Questions

Can I import multiple CSV files at once?
Excel opens one file at a time through File > Open. To import multiple CSVs, open each one separately and combine them using copy-paste or formulas like VLOOKUP across sheets.
What's the difference between CSV and XLS file imports?
CSV files are plain text and require the Text Import Wizard to define delimiters and formatting. XLS/XLSX files maintain formatting directly without a wizard step, making them faster to open.
How do I preserve leading zeros in imported numbers?
In Step 3 of the Text Import Wizard, select the column containing numbers with leading zeros and change the format from General to Text. Alternatively, format the column as Text before importing.
Will importing a CSV overwrite my existing data?
No, importing opens the CSV in a new workbook or sheet. You must manually copy and paste data to overwrite existing content, which prevents accidental data loss.
Can I automate CSV imports from a specific folder?
Yes, use Power Query (Data > Get Data > From Folder) or create a VBA macro that monitors a folder and imports new CSVs automatically on a schedule.

This was one task. ElyxAI handles hundreds.

Sign up