Smart Systems for Home

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

How to Import HTML into 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

You can import HTML into Excel in two reliable ways: open the saved .html file directly with Excel, or use the Data tab's From Web / Get Data > From Web connector to pull a table from a URL. Both work in current Microsoft 365 and Excel 2019/2021 on Windows and Mac, though the exact menu labels can differ slightly by version, device and region. The direct-open method is fastest for a file you already have; the web connector is better for a live page because it lets you pick the specific table you want and refresh it later.

What You'll Need

  • A desktop or laptop with Excel installed (Windows or Mac). The mobile Excel app cannot import HTML tables.
  • The HTML file saved to your computer, or the URL of the page you want to pull from.
  • An internet connection if you are importing from a web address.
  • For pages behind a login, valid credentials for that site.

Step-by-Step

  1. Save the HTML file first. If the page is already open in a browser, use the browser's Save Page As option and choose Webpage, HTML Only or Webpage, Complete. Save it somewhere easy to find, such as your Desktop or Downloads folder.
  2. Open Excel and go to the Data tab. On Windows, click Data on the ribbon. On Mac, the same tab is called Data. The exact buttons visible depend on your Excel version.
  3. Choose Get Data > From File > From HTML. In newer Excel versions this sits under Get Data. In older versions look for From Web or From Text/CSV. If you cannot find From HTML, use the direct-open method in the next step instead.
  4. Browse to your saved .html file and click Open. Excel scans the file and shows a preview of the tables it found.
  5. Select the table you want. The Navigator pane lists every table and page section. Click each one to preview it, tick the checkbox next to the table you need, then click Load. Choose Load To if you want the data placed on a specific sheet or in a pivot table.
  6. For a live web page, use From Web instead. Go to Data > Get Data > From Web, paste the full URL including https://, and click OK. Excel connects, lists the tables it detects, and you pick one the same way as above.
  7. Check the imported data. Confirm that column headers landed in the first row, numbers are right-aligned (meaning Excel recognised them as numbers), and dates are not showing as text. Use Home > Number Format to correct anything that came in as text.
  8. Refresh later if needed. For web imports, right-click the table and choose Refresh to pull the latest data. Saved-file imports do not refresh automatically; re-import if the source file changes.

Common Mistakes

  • Double-clicking the .html file. This opens it in your browser, not Excel. Right-click the file, choose Open With, then pick Excel.
  • Importing a whole page instead of one table. The Navigator can list dozens of tables, including navigation menus and ad blocks. Preview each one and tick only the data table you need.
  • Using a local file path as a URL. The From Web box needs a real http:// or https:// address, not a C:\ folder path. Use From HTML for local files.
  • Ignoring merged cells and nested tables. HTML tables with merged cells or tables inside tables often import with shifted columns. Check the preview before loading.
  • Assuming formulas survive. HTML carries values, not Excel formulas. Any calculated cells in the source page arrive as plain numbers or text.

Tips

  • Import into a blank worksheet rather than an existing report, so you can compare the raw data before formatting.
  • If the table has no clear headers, tick the option to use the first row as headers only after you confirm the first row really contains labels.
  • For pages that require a login, sign in to the site in your default browser first, then try From Web again; Excel can use that session for some sites.
  • Save a copy of the source .html file alongside your workbook so you can re-import later without hunting for the page.
  • If you only need a one-off copy, opening the file in Excel and using Save As > .xlsx is faster than the Get Data route.

Troubleshooting

If the import fails or the data looks wrong, work through these checks in order.

  • Excel says it cannot connect. Confirm the URL opens in your browser. If it does not, the site is down or the address is wrong.
  • No tables appear in the Navigator. The page may build its tables with scripts rather than plain HTML. Try saving the page as HTML from the browser and importing the saved file, or copy the table from the browser and paste it into Excel with Paste Special > Text.
  • Data lands in one column. The delimiter was not recognised. Use Data > Text to Columns and choose the correct separator, or re-import and check the delimiter setting in the preview.
  • Numbers show as text. Select the column, then use Data > Text to Columns and click Finish without changing anything; this forces Excel to re-evaluate the values. Alternatively, multiply the column by 1 in a helper column.
  • Import is very slow or times out. Large pages can exceed Excel's patience. Import a smaller table, or save the page locally and import the file.
  • Excel crashes during import. Restart Excel, then try again with a smaller table. If it still crashes, repair Office from Settings > Apps > Microsoft 365 > Modify.

If none of that works, the fallback is simple: open the page in your browser, select the table with the mouse, copy it, and paste into Excel. Use Paste Special > Text to avoid carrying over web formatting. You lose automatic refresh, but you get the data.

Frequently Asked Questions

Can I import HTML into Excel on a phone or tablet?

No. The mobile Excel app does not include the Get Data or From Web import tools. Use a desktop or laptop version of Excel for this.

Does importing HTML keep the original formatting?

Partially. Basic table structure, headers and cell values come through, but colours, fonts and images from the web page are not preserved. Reapply formatting in Excel after import.

Can I import a table from a page that requires a password?

Sometimes. Excel can use your existing browser session for some sites. If it cannot, save the page as HTML while logged in, then import the saved file with Get Data > From File > From HTML.

Will the imported data update automatically when the web page changes?

Only for web imports, and only when you refresh. Right-click the table and choose Refresh, or use Data > Refresh All. Saved-file imports never update on their own.

Why does Excel show only one table when the page has several?

The Navigator lists every table it detects. If only one appears, the others may be built by scripts or nested inside other elements. Save the page locally and re-import to see more.

Can I import an entire website, not just one table?

No. Excel imports tables or structured data, not whole sites. For a full page you would need a web scraping tool, which is outside Excel's built-in features.