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
- 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.
- Choose the import method
Select how you got the data:
- From another Excel file Paste data from "File" > "Open" (drag and drop) or "Paste" > "Paste Special" > "Text" to split formats.
- 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."
- 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").
- From a database Desktop: "Data" > "Get Data" > "From Database" > "Microsoft Access" or "SQL Server." Mobile: "File" > "Import" > "Database." Follow prompts for credentials.
- From a folder or cloud drive Desktop: "Data" > "Get Data" > "From File" > "From Folder" (for multiple files). Cloud: "From OneDrive/SharePoint/Google Drive" in the same menu.
- Desktop: Click "Close & Load" (desktop) or "Complete & Load" (Online) to add data to your sheet.
- Mobile: Tap "Finish" to import. A preview shows headers (column names).
- Check for missing data: Excel adds blank cells for columns with gaps.
- 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.
- After loading data, Excel shows a "Transform Data" pane. Click "Close & Load" > "Close & Load Query" to save as a Power Query step.
- To refresh: "Data" > "Refresh All."
- Edit queries later via "Data" > "Query Explorer."
Common Mistakes
- Data won’t appear
An error message like "No data found" means:
- You selected the wrong file type (e.g., Excel file in a CSV dialog).
- The web page URL is incorrect or the table isn’t visible (use "Select Table" in Get Data).
- Formatting conflicts: Try "Paste Special" > "Text" to preserve data types.
- Headers disappeared
Most methods preserve headers, but if not:
- Add them manually in the first row.
- 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:
- Right-click the file > "Open With" > "Microsoft Excel."
- Sign out of OneDrive/SharePoint if you’re on the cloud version.
- For CSV files: Ensure the file extension is ".csv" (not ".txt").
- Update Excel ("File" > "Account" > "Update Options").
- Import fails with "Access Denied"
Check:
- You’re logged into the correct cloud account (OneDrive/SharePoint).
- For databases: Verify credentials are correct (some servers require a specific username/password).
- Restart Excel and try again.
- Web data is slow or broken
- Refresh the page manually before importing.
- Use "Web Query" in desktop Excel to select the table directly (avoids scraping errors).
- 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").