Smart Systems for Home

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

Import a Worksheet in Excel: Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To import a worksheet in Excel, you can either move a sheet from one workbook to another using the Move or Copy command, or import external data from a CSV, Text, or Web file using the Data tab. Importing allows you to consolidate information from multiple sources into a single master file without manually copying and pasting every cell, which preserves data integrity and reduces human error.

What You'll Need

  • A computer with Microsoft Excel installed (labels may differ slightly by version or region).
  • The source file containing the data you wish to import (e.g., another .xlsx workbook, a .csv file, or a .txt file).
  • Administrative permissions to access the folders where the source files are stored.
  • The destination workbook open and ready for the new data.

Step-by-Step

Method 1: Importing a Sheet from Another Excel Workbook

This method is best when you have two Excel files open and want to transfer a specific tab from the source file to the destination file while keeping the formatting intact.

  1. Open both the source workbook (where the data currently lives) and the destination workbook (where you want the data to go).
  2. In the source workbook, go to the bottom of the screen where the sheet tabs are located.
  3. Right-click on the tab of the worksheet you want to import.
  4. Select Move or Copy... from the context menu.
  5. In the dialog box that appears, click the dropdown menu under To book: and select the name of your destination workbook.
  6. Under Before sheet:, choose where you want the imported sheet to be positioned (e.g., move it to the end or place it before a specific existing sheet).
  7. If you want to keep the original sheet in the source file, check the box labeled Create a copy. If you leave this unchecked, the sheet will be removed from the source file and moved entirely to the destination.
  8. Click OK. The worksheet will now appear in your destination workbook.

Method 2: Importing Data from a CSV or Text File

Use this method when your data is stored in a flat-file format like Comma Separated Values (CSV) or Tab Delimited text. This uses the Power Query engine to ensure data types are handled correctly.

  1. Open your destination Excel workbook.
  2. Click on the Data tab in the top ribbon.
  3. In the Get & Transform Data group, click Get Data.
  4. Navigate to From File and then select From Text/CSV.
  5. A file browser window will open. Locate the file on your computer, select it, and click Import.
  6. Excel will display a preview window. Check the File Origin (encoding) and the Delimiter (e.g., Comma, Semicolon, Space) to ensure the columns are splitting correctly in the preview.
  7. If the data looks correct, click Load to bring the data directly into a new worksheet.
  8. If the data needs cleaning (such as removing empty rows or changing date formats), click Transform Data. This opens the Power Query Editor. Once you have made your changes, click Close & Load to import the cleaned worksheet.

Method 3: Importing Data from a Web Page

This allows you to pull a table directly from a website into an Excel worksheet, which can be refreshed if the website data updates.

  1. Copy the URL of the webpage containing the table you want to import.
  2. In Excel, go to the Data tab.
  3. Click From Web (found in the Get & Transform Data section).
  4. In the dialog box, paste the URL into the address bar and click OK.
  5. Excel will analyze the page and show a Navigator window. On the left side, you will see a list of tables found on that page.
  6. Click on each table name to see a preview. Select the table that contains the data you need.
  7. Click Load to import the table as a new worksheet.

Common Mistakes

One of the most frequent errors is forgetting to check the Create a copy box when moving a sheet between workbooks. If this is missed, the sheet is physically moved, and the source file is altered. If you have already saved and closed the source file, retrieving that data requires using the Undo command immediately or restoring a previous version of the file.

Another common mistake occurs during CSV imports: ignoring the delimiter settings. If a CSV uses semicolons instead of commas (common in some European regions) and the user leaves the default setting as "Comma," Excel will import all the data into a single column, making it unusable until the import is restarted with the correct delimiter.

Users also frequently overlook the Transform Data step. Importing "raw" data often results in dates being read as text or numbers being read as scientific notation. Skipping the transformation step means you will have to manually clean the data using formulas or Find and Replace, which is significantly more time-consuming than using the Power Query editor during the import process.

Tips

To keep your workbook organized, name your imported sheets immediately. By default, Excel may name them "Sheet1" or the name of the CSV file. Double-click the tab at the bottom to rename it to something descriptive, such as "Q1_Sales_Import."

If you are importing data that changes frequently (like a web table or a shared CSV), use the Refresh feature. Instead of re-importing the worksheet every time, go to the Data tab and click Refresh All. Excel will reconnect to the source file or URL and update the values in your worksheet automatically.

When importing large datasets, consider importing the data as a Table rather than a range. Tables in Excel provide automatic filtering, sorting, and structured referencing, which makes managing imported worksheets much easier as the dataset grows.

Troubleshooting

If the Move or Copy option is greyed out, it is usually because the workbook is protected. Go to the Review tab and check if Protect Workbook is highlighted. If it is, click it to disable protection (you may need a password) before you can move sheets.

If you encounter a "File in Use" error when importing a CSV or Text file, ensure that the source file is not open in another program, such as Notepad or another instance of Excel. Close the source file and try the import process again.

If the data appears as a series of hashtags (#######) after importing, this does not mean the data is missing. It simply means the column is too narrow to display the value. Double-click the boundary between the column headers at the top to auto-fit the column width.

If the From Web tool cannot find any tables on the page, the website may be using dynamic JavaScript to load its content, which Excel's basic web importer cannot always read. In this case, the best alternative is to copy the data manually or export the data from the website as a CSV first.

Frequently Asked Questions

Can I import a worksheet from a password-protected file?

Yes, but you must provide the password when Excel prompts you to open the source file. If you are using the Get Data method, Excel will ask for credentials before it can access the content of the file.

Will importing a sheet bring over the formulas?

If you use the Move or Copy method between two Excel workbooks, formulas are preserved. However, if the formulas refer to other sheets in the source workbook that were not moved, the formulas will now link back to the original source file.

How do I import multiple worksheets at once?

To import multiple sheets from one workbook, hold down the Ctrl key while clicking the tabs of the sheets you want to move. Once they are all selected, right-click any of the selected tabs and follow the Move or Copy steps.

Why does my CSV import look different than it did in the text editor?

This is usually due to the Delimiter or File Origin settings. Ensure the delimiter matches the character used to separate your data (comma, tab, or semicolon) in the import preview window.

Is there a limit to how many worksheets I can import?

Excel does not have a hard limit on the number of worksheets, but your computer's available memory (RAM) does. Importing too many large worksheets can cause Excel to slow down or crash.