Excel lets you import data from almost any source, saving hours of manual typing. Simply open the file, choose the import method, and transform raw data into clean, usable sheets—whether from web tables, databases, or text files. No advanced skills needed; this guide covers every step for beginners and power users.

What You'll Need

  • A Microsoft Excel file (Excel 2016 or later; Excel Online works too)
  • The source data—documents (CSV, TXT, TSV), web tables, databases, or other Excel files
  • If importing from a web page: an internet connection and browser
  • For advanced methods (Power Query, Power Pivot): no extra tools required (Excel includes them)

Step-by-Step

  1. Open Excel Choose "File" > "Open" > "Browse" on desktop, or open Excel Online in a browser. For web data, use Excel's built-in web scraping feature (see step 3). Label your new sheet "Imported Data" if needed.
  2. Choose the import method Select how you got the data:
    1. From another Excel file Paste data from "File" > "Open" (drag and drop) or "Paste" > "Paste Special" > "Text" to split formats.
    2. From a CSV, TXT, or TSV file Go to "Data" > "Get Data" > "From File" > "From Text/CSV" (desktop only). Mobile: tap "File" > "Open" > "Data Import." Choose your file, then click "Transform Data."
    3. From a web page Type a URL in Excel Online or paste into desktop Excel: "Data" > "Get Data" > "From Web." Select the table range or entire page (desktop: use "Web Query" > "Web" > "Select Table" in "Get & Transform").
    4. From a database Desktop: "Data" > "Get Data" > "From Database" > "Microsoft Access" or "SQL Server." Mobile: "File" > "Import" > "Database." Follow prompts for credentials.
    5. From a folder or cloud drive
    6. Desktop: "Data" > "Get Data" > "From File" > "From Folder" (for multiple files). Cloud: "From OneDrive/SharePoint/Google Drive" in the same menu.
  3. Review and load the data
    1. Desktop: Click "Close & Load" (desktop) or "Complete & Load" (Online) to add data to your sheet.
    2. Mobile: Tap "Finish" to import. A preview shows headers (column names).
    3. Check for missing data: Excel adds blank cells for columns with gaps.
    4. Adjust formatting Right-click a column header: "Format Column" to change data types (dates, numbers), or "Format Cells" for fonts/colors. Use "Merge & Center" if needed.
  4. Power Query (automate future imports) If you’ll import the same data often:
    1. After loading data, Excel shows a "Transform Data" pane. Click "Close & Load" > "Close & Load Query" to save as a Power Query step.
    2. To refresh: "Data" > "Refresh All."
    3. Edit queries later via "Data" > "Query Explorer."

Common Mistakes

  • Data won’t appear An error message like "No data found" means:
    1. You selected the wrong file type (e.g., Excel file in a CSV dialog).
    2. The web page URL is incorrect or the table isn’t visible (use "Select Table" in Get Data).
    3. Formatting conflicts: Try "Paste Special" > "Text" to preserve data types.
  • Headers disappeared Most methods preserve headers, but if not:
    1. Add them manually in the first row.
    2. In Power Query, select "Add Column" > "Index Column" (then rename it).
  • Rows/columns misaligned Drag column borders to resize or use the "Insert Columns/Rows" button.

Tips

  • For large files (>10,000 rows): Use Excel’s "Split Data" feature ("Data" > "Split Data") to handle chunks.
  • Freeze headers: Select the first row > "View" > "Freeze Panes" to keep them visible while scrolling.
  • Transpose data (rows to columns): Select data > "Home" > "Transpose" (mobile: "Format" > "Transpose").
  • Use conditional formatting to highlight errors (e.g., blank cells) after import.
  • For web data, test with a small sample first: Right-click the table > "Copy Data" to verify accuracy.

Troubleshooting

  • Excel won’t open the file Try these fixes:
    1. Right-click the file > "Open With" > "Microsoft Excel."
    2. Sign out of OneDrive/SharePoint if you’re on the cloud version.
    3. For CSV files: Ensure the file extension is ".csv" (not ".txt").
    4. Update Excel ("File" > "Account" > "Update Options").
  • Import fails with "Access Denied" Check:
    1. You’re logged into the correct cloud account (OneDrive/SharePoint).
    2. For databases: Verify credentials are correct (some servers require a specific username/password).
    3. Restart Excel and try again.
  • Web data is slow or broken
    1. Refresh the page manually before importing.
    2. Use "Web Query" in desktop Excel to select the table directly (avoids scraping errors).
    3. Try a different browser or clear cache.
  • Power Query hangs Close the "Transform Data" pane > restart Excel. If problems persist, delete the query step ("Data" > "Close & Discard All Changes").

Frequently Asked Questions

Can I import data from a PDF?

Most PDFs aren’t directly importable. Use "File" > "Open" > "Browse" and select "Text/CSV" > "PDF" as the file type on desktop (though results vary). For tables: scan the PDF into an image, then use "Paste Special" > "Paste Pictures" + OCR tools like Adobe Acrobat’s "Export to Excel."

How do I import data from Google Sheets?

1. Open your Google Sheet. 2. Click "File" > "Download" > "Comma-separated values (.csv)". 3. In Excel, go to "Data" > "Get Data" > "From File" > "From Text/CSV" > select the downloaded file.

Why does Excel skip rows during import?

Excel skips rows that: - Are blank. - Contain only whitespace (use "Paste Special" > "Text" to fix). - Have inconsistent formatting (e.g., dates vs. text). Apply a format filter (e.g., "Date") to correct types before importing.

Can I import data from a mobile phone?

Yes, but the process varies: - **Desktop Excel**: Import files from your phone’s storage via "Data" > "Get Data" > "From File" > "From Folder." - **Excel Mobile**: Tap "File" > "Import" > "From Phone" (select files from your device’s gallery).

How do I clean up messy imported data?

Use these Excel tools: - "Remove Rows" > "Remove Duplicates." - "Data" > "Sort" to order data. - "Text to Columns" ("Data" > "Text to Columns") to split merged cells.

What if I get an error about "unknown file type"?

The file might be corrupted or use a non-standard format. Try these fixes: 1. Re-download the file. 2. Rename the extension (e.g., ".csv" instead of ".xls.bz2"). 3. For cloud files, check the file’s original source (e.g., download from the website instead of drag-and-drop).