LightCube Data Extractor

How to Extract Table from Webpage to Excel (Step-by-Step)

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

To extract a table from a webpage to Excel, use Get & Transform (formerly Power Query) in Excel: paste the page URL, pick the table, clean it up, and load it to a worksheet. The connection stays live, so one click refreshes your data. For quick one-off exports, a browser extension or web tool is faster.

TL;DR: - Excel's Data tab has a built-in "From Web" connector that links a sheet to a live page. - Copy and paste works for a single snapshot, but you must repeat it every time the page changes. - Clean the table in Power Query first, then use Refresh to pull in the latest values. - If you need CSV or Google Sheets instead of Excel, a browser-based extractor skips the setup.

What is the fastest way to extract a table from a webpage to Excel?

The fastest route depends on whether you need the data once or on a schedule. For a one-time copy, select the table on the page, copy it, and paste it into Excel, which usually works if the table is simple. For recurring work, use Get & Transform so the sheet stays connected to the source page and updates with a single refresh.

There is a third option worth knowing. If your real goal is a clean CSV file or a Google Sheets link rather than an Excel workbook, a browser-based tool such as LightCube Data can grab the table directly from the page you are already viewing, without building a query.

How do I copy a table from a website into Excel?

Start by finding the page that holds the data you want. Open it in your browser and confirm the table is complete, including headers and all rows you need.

Then select the table, press Ctrl+C, switch to Excel, and press Ctrl+V. Excel usually recognizes the rows and columns and places them in cells starting at your selected cell.

The limitation here matters. A pasted table is a static snapshot. It is not linked to the web page, so if the source updates tomorrow, your spreadsheet still shows yesterday's numbers. If you need this information continuously, set up a live connection instead.

How do I connect Excel to a live web table with Get & Transform?

Get & Transform has shipped as a built-in feature of Excel since Excel 2016, so there is no separate add-in to install. It connects to a data source, transforms it, and loads it into your workbook.

Here is the setup for a live connection:

  1. Open the web page that contains your table and copy its URL from the address bar.
  2. In Excel, go to the Data tab and choose Get Data, then From Web.
  3. Paste the URL into the address box and click OK to open the Query Editor.
  4. Switch to Table View, browse the detected tables, and select the one that matches your data.
  5. Use the Web View option if you need to confirm you are on the right part of the page.
  6. Click Load To, choose Existing Worksheet, pick a starting cell, and click OK.

Your workbook now holds a query rather than a plain copy. Hover over the query to see its source and when it was last refreshed.

How do I clean up a messy table before loading it?

Some pages include columns you do not need, blank cells, or headers that shifted out of place. Fixing these in the Query Editor before loading keeps your formulas working later.

Open the query by double-clicking it in the Queries pane, then work in the Transform tab:

For example, a ten-day forecast table might have day, description, and high and low temperatures buried among extra columns. Delete the extras, keep the three you need, and the report stays readable. If you plan to calculate with those temperatures, set their data type to a number first. If you only plan to display them, leaving them as text is fine.

How do I refresh the data once the connection is set up?

Refresh is the payoff of using a live connection. Open your workbook, go to the Data tab, and click Refresh All. Every query updates in one pass.

You can also right-click a specific query and choose Refresh. To automate it further, open the query's drop-down menu and select Connection Properties. There you can set a refresh interval, such as every 60 minutes, or enable refreshing the data each time the file is opened.

Because every transformation you applied is saved as a step, the cleanup repeats automatically on each refresh. That is why it is worth spending a minute removing columns and fixing blanks before the first load.

Should I use Excel Get & Transform or a browser extension?

Both approaches work, but they suit different situations. Here is a quick comparison:

Approach Best for Refresh Output Setup
Copy and paste A one-time snapshot Manual re-copy Excel sheet None
Excel Get & Transform Recurring reports and analysis One click or scheduled Excel workbook Query setup
Browser extension or web tool Quick exports and sharing Run the tool again CSV, Excel, Google Sheets Minimal

Excel's connector is the stronger choice when you need formulas, pivots, or charts that update over time. A browser-based extractor is the stronger choice when you need a CSV for a script, a Google Sheets link for a teammate, or a fast export without touching Power Query.

What should I do if the table does not load correctly?

If no tables appear, the page may render its data with JavaScript after the initial load, and Excel's connector may not see it. Try a different table on the page, or use a browser-based extractor that reads what is actually displayed.

If the values look wrong, check the data types in the Query Editor. Numbers imported as text will break calculations, and headers that shifted will leave columns mislabeled. Fix the types and headers in the editor, then close and load again.

If the page structure changes, your query can break. Keep an eye on the refresh results, and be ready to reselect the table. For pages you check frequently, a tool that captures the visible table each time you run it can be more forgiving.

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 need the Power Query add-in to import a web table?

No. Get & Transform has been part of Excel since Excel 2016, so the From Web option is available directly on the Data tab without installing anything extra.

Can I import a table from any website into Excel?

Most pages with standard HTML tables work well. Pages that build their tables dynamically with JavaScript can be trickier, and you may need a browser-based extractor that reads the rendered table instead.

How do I convert a web table to CSV instead of Excel?

Use a browser-based tool that exports tables to CSV, then open that file in Excel if you need it there. You can also import the table with Get & Transform and save the query output as a CSV file.

Will my Excel table update automatically when the web page changes?

Not by itself. You need to refresh the query, either manually, on a set interval through Connection Properties, or when the file opens. Each refresh re-runs your saved transformation steps.

What is the difference between copying a table and importing it from the web?

Copying gives you a static snapshot that you must redo whenever the source changes. Importing creates a live connection that pulls the current values on refresh, which is better for recurring reports.


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