LightCube Data Extractor

How to Download Table from Website to Excel

By the LightCube Data team ยท Updated 2026-11-27

How to download table from website to Excel? Copy the page URL, open Excel's Data tab, choose From Web, select the detected table, and load it to a worksheet. This creates a live connection, so one refresh replaces the old values with the latest version.

TL;DR: - Excel's Get & Transform (Data, then From Web) connects to a page URL, detects its tables, and loads them into a worksheet you can refresh later. - If a table imports with shifted headers or blank cells, fix it in Power Query before loading, then set data types and remove columns you do not need. - For one-off copies or non-Excel destinations, a table extractor that exports to CSV, Excel, or Google Sheets can be simpler than building a query.

What is the fastest way to download a table from a website to Excel?

There are three practical routes. The quickest is copy and paste: select the table on the page, press Ctrl+C, open Excel, and press Ctrl+V. Excel often recognizes the structure, but you get a static snapshot, so you repeat the whole process every time the data changes.

The better route for recurring work is Get & Transform, which has been built into Excel since Excel 2016 and was previously a separate Power Query add-in. It connects to a source, transforms the data, loads it, and refreshes with a single click.

The third route is a browser extension or web tool built for extracting HTML tables and exporting them to CSV, Excel, or Google Sheets. That works well when you do not use Excel, when a teammate needs a file rather than a live query, or when the table is a one-time pull.

How do you import a web table into Excel with Get & Transform?

The workflow below uses a public energy data page with petroleum spot prices, but the same steps work for any page that exposes an HTML table.

  1. Find the page that contains the table and copy its URL from the browser address bar.
  2. Open Excel and go to the Data tab.
  3. Choose Get Data, then From Web, paste the URL, and press OK.
  4. Excel opens the Power Query editor and scans the page for tables.
  5. Switch between Web View and Table View to confirm you are on the correct page and pick the right table.
  6. Preview the columns and check that the headers line up with the data below them.
  7. Choose Load To, select Existing Worksheet, pick a cell, and confirm.
  8. Rename the query in the Queries & Connections pane so you can identify it later, then close the editor.

The loaded table appears in the sheet, and the query stays linked to the original page. Hovering over the query shows its source and the last refresh time.

How do you fix a table that imports with the wrong columns or blank cells?

Double-click the query to reopen Power Query and edit it before loading. If headers appear shifted, use Remove Columns to drop the fields you do not need, then check that each remaining header sits above the right values.

Blank cells can be trickier. If a cell holds an empty string, Fill Down may not treat it as empty. Add a Replace Values step first, find an empty string, replace it with null, and insert that step before the fill. Then use Transform, Fill, Fill Down. Fill Down copies the last non-empty value downward, so apply it only where that behavior is correct.

Data types matter too. If a temperature column arrives as text and you want to calculate with it, set it to a decimal number. If the table is only a display report, leaving it as text is fine. Finish with Close & Load to apply the changes.

How do you keep the imported table up to date?

Use Data, then Refresh All, or right-click the query and choose Refresh. For unattended reports, open Connection Properties from the query's drop-down menu. There you can set a refresh interval in minutes, enable refresh when the file opens, and adjust other connection settings.

Refresh on open is the practical choice for a daily report. One caution: refreshing overwrites the loaded range, so keep your own formulas in separate columns or on a separate sheet instead of typing over imported cells. Also expect occasional breakage when the source site redesigns its page, since the query depends on the table structure staying the same.

How do you import a second table and add a custom column?

A second example is a ten-day weather forecast page. The import flow is identical: find the page, copy the URL, choose From Web, pick the forecast table, remove columns you do not need, and load it to an existing worksheet.

You can also add a rule that runs on every refresh. Copy the symbol first, since the emoji picker closes when you switch windows. On Windows, press the Windows key and a period, search for rain, and copy the umbrella emoji. Then in Power Query choose Add Column, then Conditional Column. Name it something like "Be equipped". If the description column contains "rain", insert the emoji. Else if it contains "shower", insert the same emoji. Otherwise, leave it blank. Drag the new column beside the description and choose Close & Load. Every refresh reapplies the rule automatically.

When should you export to CSV or Google Sheets instead of Excel?

Method Best for Refresh Watch out for
Copy and paste A one-off copy of a simple table Repeat manually Formatting and merged cells can break the layout
Excel Get & Transform Recurring reports and analysis in Excel One click, on open, or on a schedule Page changes can break the query
Browser extension or web tool Quick extraction to CSV, Excel, or Google Sheets Run the export again Produces a file rather than a live query
Google Sheets import functions Tables published as CSV or XML Schedule inside Sheets Does not read every HTML table

If your team works in Google Sheets, a CSV export is usually the easiest handoff. LightCube Data offers a browser extension and a web tool for extracting HTML tables and exporting them to CSV, Excel, or Google Sheets, which suits one-time pulls and shared workflows where nobody wants to maintain a Power Query connection.

What should you do when a web table will not import at all?

Some pages build their tables with scripts, reveal rows only after scrolling, hide data behind filters, or require a sign-in. Excel may open the Web View and show no tables at all. Check that you copied the page URL rather than a search result, then try the site's own print, download, or export option if one exists. Look for a CSV or XML data link, since those import more reliably than the rendered page. When no export exists, a table extraction tool that reads the rendered HTML table is the practical fallback. Keep the source URL in a notes column so you can retrace your steps later.

Export any web table to CSV or Excel

Paste a page link into the LightCube web exporter and download its tables as CSV or Excel. Free for 25 rows; Pro is $9 once.

Try the web exporter ↗

FAQ

Does Excel refresh web tables automatically?

Yes, if you set it up. Connection Properties lets you refresh every set number of minutes or each time the file opens, and Data, then Refresh All updates everything on demand.

Can I import a table from any website into Excel?

Not from every page. Excel detects standard HTML tables, but pages that render data with scripts, pagination, or logins may not expose one. Use the site's own export link or a table extraction tool in those cases.

Why did my pasted table lose its formatting or split into extra columns?

Copy and paste carries formatting, merged cells, and stray spacing. Paste as values and use Text to Columns to clean it up, or import through From Web, which reads the table structure instead of the visual layout.

Do I need an Excel add-in to import web tables?

No. Get & Transform has been part of Excel since Excel 2016. Before that it was a separate Power Query add-in, and on some versions From Web sits directly on the Data tab.

Can I send a web table straight to Google Sheets?

Yes. Export the table to CSV and upload it, or use a tool that exports directly to Google Sheets. The built-in Sheets import functions work best with CSV or XML endpoints rather than arbitrary HTML tables.


Based on a video by Leila Gharani: Easily Import Data from Web to Excel (2 Practical Examples). Written in our own words with added steps and an FAQ.

More guides