The fastest way depends on where your data lives right now

If your data is in a text file, a CSV file, another spreadsheet, or a website table, Excel can pull it in directly. If it's in a database or a specialized program, you'll usually export it first as CSV or text, then open it in Excel. The method you choose matters because some routes preserve formatting and formulas, while others strip them out — and some require you to tell Excel how to read the data so it doesn't turn dates into numbers or split names across columns by accident.

The three most common starting points are: data you copy and paste from somewhere else, a file you download or export, and a live connection to a data source that updates on its own. Each one works differently in Excel, and each one has a moment where things go wrong if you're not watching.

Key Takeaways

  • Copying and pasting works for small amounts of data, but Excel will guess at the format — numbers might become text, or dates might break into separate columns.
  • CSV files (comma-separated values) are the universal format for moving data between programs; opening one in Excel launches the Text Import Wizard, where you control how Excel reads each column.
  • The Text Import Wizard is where you fix problems before they happen — you can tell Excel which columns are dates, which are numbers, and which should stay as text.
  • If your data lives in a database or online service, exporting to CSV first is usually simpler than trying to connect Excel directly, especially if you're not comfortable with formulas.
  • Once data is in Excel, you can refresh it from the original file if the source updates, but only if you imported it using File > Open or Data > From Text/CSV, not copy-paste.

Copy and paste: fast, but Excel makes assumptions about your data

The simplest method is to select data somewhere — a website table, an email, a PDF, another program — copy it, and paste it into an Excel cell. This works immediately and requires no steps. The catch is that Excel looks at what you pasted and decides what type each column is: text, number, date, currency. It's often wrong.

If you paste a column of dates like "01/02/2024", Excel might read them as dates in one format, or as text, or split them into three columns depending on what separators it sees. If you paste a column of product codes like "00123", Excel will strip the leading zeros and turn them into the number 123. If you paste a column of phone numbers, the same thing happens.

To fix this after pasting, select the column, right-click, choose Format Cells, and set the format to Text before you paste. Or paste into a text editor first, copy from there, and paste into Excel — this forces Excel to treat everything as text initially, and you can convert what you need afterward. For small amounts of data this is fine. For hundreds of rows, use the CSV method instead.

Importing a CSV file: the Text Import Wizard gives you control

A CSV file (comma-separated values) is a plain-text file where each row is a line and each column is separated by a comma. Almost every program that stores data can export to CSV — accounting software, email programs, databases, online services. When you open a CSV file in Excel, the Text Import Wizard appears automatically and lets you tell Excel how to read each column before the data lands in your spreadsheet.

To import a CSV file, go to File > Open, navigate to the file, and select it. The Text Import Wizard opens in three steps. In Step 1, you choose the file type (usually "Delimited" for CSV) and the character set (usually UTF-8). In Step 2, you choose the delimiter — comma is standard, but some files use tabs or semicolons. In Step 3, you select each column and set its format: General, Text, Date, or Do Not Import.

This is where you fix problems before they happen. If you have a column of dates, click it and choose Date, then pick the date format from the dropdown (the format must match what's in your file). If you have product codes or ZIP codes with leading zeros, click the column and choose Text. If you have a column you don't need, click it and choose Do Not Import. When you finish, click Finish and the data lands in your spreadsheet with the format you specified.

If you already have a CSV file open in Excel and want to re-import it with different settings, close it without saving, then open it again — the Text Import Wizard will appear again.

Importing from other Excel files or spreadsheets

If your data is in another Excel file, you can open both files side by side and copy-paste between them. If you want to link the data so it updates when the source file changes, use a formula instead: in the destination file, type = and then click a cell in the source file. Excel will write a formula like =[SourceFile.xlsx]Sheet1!A1 that pulls the value from that cell. When the source file updates, the formula updates too — but only if both files are open, or if you update the links manually.

If your data is in Google Sheets, download it as an Excel file (.xlsx) or CSV, then open it in Excel. If you want to pull data from Google Sheets regularly, export to CSV each time, or use a formula in Excel that references the CSV file if your organization hosts it on a shared drive.

Connecting to databases and online data sources

If your data lives in a database like Microsoft Access, SQL Server, or MySQL, or in an online service like Salesforce or a company database, Excel can connect directly using Data > From Database or Data > From Web. These connections pull data into Excel and can refresh automatically on a schedule.

For most people, exporting to CSV first is simpler. Ask your database administrator or the service provider for a CSV export, then import it using the Text Import Wizard. This avoids the need to set up connection strings or database credentials in Excel, and it's easier to troubleshoot if something goes wrong.

If you do use a direct connection, Excel stores the connection details in the file. If you share the file with someone else, they'll need access to the same database or data source, or the connection will break. For shared files, CSV is usually the better choice.

Fixing common problems during import

The most common problem is that Excel reads a column as the wrong type. If dates turn into numbers like 45000, or if numbers lose leading zeros, or if text gets split across columns, you didn't set the column format in the Text Import Wizard. Close the file without saving, open it again, and use the wizard to set the format correctly.

If your CSV file uses a character set other than UTF-8 — for example, if it was created on an older system or in a different language — Excel might show garbled text. In the Text Import Wizard, Step 1 has a dropdown for "File origin" or "Character set". Try different options until the text looks right.

If your data has extra spaces at the beginning or end of cells, use Find & Replace (Ctrl+H) to find and remove them. If your data has line breaks inside cells, the CSV import might split those rows across multiple rows in Excel. This is harder to fix; ask the person who created the file to remove the line breaks before exporting.

Refreshing imported data when the source changes

If you imported data from a CSV file or a database connection, you can refresh it to pull the latest version. Right-click the data range and choose Refresh, or go to Data > Refresh All. This works only if you imported using File > Open or Data > From Text/CSV — if you copy-pasted, there's no link to refresh.

If the source file has moved or been renamed, the refresh will fail. Excel will ask you to locate the new file. If you're sharing the workbook with others, make sure everyone has access to the source file in the same location, or the refresh will fail for them too.

Frequently Asked Questions

Can I import data from a PDF into Excel?

PDF tables don't import cleanly into Excel directly. Copy the table from the PDF and paste it into Excel, then use Find & Replace to clean up extra spaces and line breaks. If the PDF has many tables, ask the person who created it for the original file in Excel or CSV format instead.

What's the difference between CSV and XLSX?

CSV is plain text with no formatting, formulas, or multiple sheets — it's the universal format that every program can read. XLSX is Excel's native format and preserves formatting, formulas, and multiple sheets. Use CSV to move data between different programs; use XLSX to keep everything Excel-specific.

Why does Excel keep changing my data when I paste it?

Excel guesses the format of each column based on what it sees. Before you paste, select the destination cells, right-click, choose Format Cells, and set the format to Text. Then paste. This tells Excel to treat everything as text and not make assumptions.

Can I set up Excel to pull data automatically from a website?

Yes, using Data > From Web. Paste the website URL and Excel will show you the tables on that page. Select the table you want and click Load. If the website updates, you can refresh the data in Excel, but only if the table structure stays the same. If the website changes its layout, the refresh might break.

What should I do if the Text Import Wizard doesn't appear when I open a CSV file?

Excel might be set to open CSV files without showing the wizard. Go to File > Options > Data, and check the box for "Show the Import Wizard when opening a text file". Close and reopen the CSV file, and the wizard should appear.