LightCube Data Extractor

How to Copy a Table from a Website to Excel

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

Copying a table from a website to Excel is simple with a quick paste, but a connected import is better when the data changes. Use Excel's Get & Transform tools to pull a live table into a sheet, or export it to CSV or Google Sheets with a browser extension.

TL;DR: - A plain copy and paste works for a one-time snapshot, but it will not update itself. - Excel's Get & Transform (formerly the Power Query add-in) connects to the page so you can refresh with one click. - Clean up columns and headers in the Query Editor before loading, especially when a page shifts its layout. - If you do not use Excel, a browser-based table extractor can send the same data to CSV, Excel, or Google Sheets.

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

The fastest method depends on how often you need the data. For a one-time copy, select the table on the page, press Ctrl+C, then paste it into Excel with Ctrl+V. Excel usually recognizes the rows and columns on its own. For data you need to keep current, use Data > From Web instead, paste the page URL, pick the right table in the Query Editor, and load it to a worksheet. That connection refreshes on demand, so you never repeat the copy and paste routine by hand.

Why does a normal copy and paste not update when the page changes?

Because a paste creates a static snapshot. The cells hold the values you copied at that moment, and nothing links them back to the web page. If the source table adds a row, changes a price, or updates a forecast, your spreadsheet keeps showing the old numbers until you copy everything again. That is fine for a quick reference, but it becomes a problem when you are tracking the same table weekly, building a report for someone else, or feeding formulas that depend on current values. A connected import solves this by re-reading the page each time you refresh.

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

Get & Transform has been built into Excel since Excel 2016, replacing the separate Power Query add-in. It connects to a data source, lets you reshape the data, and loads it into your workbook.

  1. Open the web page that contains the table and copy its full address from the browser.
  2. In Excel, go to the Data tab and choose Get Data > From Web.
  3. Paste the URL into the address box and click OK.
  4. In the Query Editor, switch between Web View and Table View to confirm you are on the right page and the right table.
  5. Select the table you want, then click Close & Load, or use Load To and pick Existing Worksheet.
  6. Click Refresh on the Data tab later to pull the newest values from the page.

How do you fix headers and remove columns you do not need?

Web tables rarely arrive in a clean shape. A page may include navigation rows, extra columns, or headers that sit one row off from the data. The Query Editor lets you correct this before anything reaches your sheet. Open the query by double-clicking it in the Queries pane, then use the Home tab to remove columns you do not need. If the column titles have shifted, use Transform > Fill Down to pull the header values into the blank row above them. When a column contains text but you plan to calculate with it, change its data type to a number first. If a value looks empty but is not treated as empty, use Replace Values to swap an empty string for null, then apply Fill Down again. Close & Load when the preview looks right.

How do you keep the imported table up to date?

Once the table is loaded, Excel keeps a query for it in the workbook. Click Refresh on the Data tab to fetch the latest data, or right-click the query and choose Refresh. You can also set automatic refresh intervals through the query's Connection Properties, such as refreshing every 60 minutes, and you can enable refreshing when the file is opened. Any transformation you applied, such as removing columns or adding a conditional column, is reapplied each time the query runs. That is the real advantage: the cleanup work happens once, and the output stays consistent every refresh.

What should you do when the web page layout changes?

Expect occasional breakage. Web pages are redesigned, tables get rebuilt, and a source that worked last month may return an error or a different table on refresh. When that happens, open the query again and check the Web View to see what the page looks like now. If the table moved, reselect it in Table View. If the headers shifted again, repeat the Fill Down and Replace Values steps. If the page now loads its data through a script that the importer cannot read, the connected query will not recover on its own, and you will need a different route to the data. Keeping a note of the source URL and the date of your last successful refresh helps you spot when something changed.

Is there an alternative to Excel for exporting a web table to CSV or Google Sheets?

Yes. If you work outside Excel, or you want the data in a format your team already uses, a browser-based table extractor is a practical option. You open the page, run the extractor, preview the detected table, and export it to CSV, Excel, or Google Sheets without writing a query. Tools like LightCube Data offer a browser extension and a web tool for this kind of extraction, which suits analysts, marketers, students, and operations staff who just need the table and want to move on. For example, a marketer comparing pricing tables across several product pages can export each one to CSV, stack the rows in a spreadsheet, and keep working in the format they prefer.

How do you compare the main ways to get web tables into a spreadsheet?

Each method fits a different situation, so pick based on how often the data changes and where it needs to live.

Method Best for Updates automatically Output formats Main limitation
Copy and paste One-time snapshots No Excel cells Must be repeated by hand
Excel Get & Transform Recurring reports and analysis Yes, on refresh Excel workbook Requires Excel and some setup
Browser table extractor Quick exports without Excel No, unless re-run CSV, Excel, Google Sheets Depends on the page structure
Web-based extraction tool Sharing data outside Excel No, unless re-run CSV, Excel, Google Sheets Needs a browser and internet access

How do you add a simple visual cue to a refreshed table?

A conditional column can flag rows for you without changing the source data. Open the query, add a new column, and choose Conditional Column. Set the rule so that when a text column contains a word such as rain or shower, the new column shows a symbol like an umbrella emoji, and otherwise it stays blank. You can copy the emoji from your operating system's emoji picker before you open the Query Editor, then paste it into the rule. Once loaded, drag the new column next to the one it relates to. Because the rule lives inside the query, it applies again on every refresh, so your report keeps the same formatting automatically.

FAQ

Does Excel refresh web tables automatically?

Excel refreshes when you tell it to, through the Refresh button or by right-clicking the query. You can also set a refresh interval in Connection Properties or turn on refreshing when the file opens.

What is the difference between Get & Transform and the old Power Query add-in?

Get & Transform is the built-in version of the Power Query experience. Since Excel 2016 it ships with Excel, so you do not need to install a separate add-in to import and transform web data.

Why are my imported headers in the wrong columns?

The page structure often includes a blank row or extra cells above the real headers. Open the query and use Fill Down to move the header text into place, replacing empty strings with null first if the blanks are not recognized.

Can I import a table from any website?

Excel can read tables that are present in the page HTML. Pages that load their data dynamically, or that hide it behind logins, may not be readable, and a browser extractor may handle some of those cases better.

Which format should I choose, CSV, Excel, or Google Sheets?

Choose CSV for a clean, portable file that opens anywhere. Choose Excel when you want formulas, formatting, and refreshable queries. Choose Google Sheets when your team works in a shared browser-based spreadsheet and needs easy collaboration.

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?

Excel refreshes when you tell it to, through the Refresh button or by right-clicking the query. You can also set a refresh interval in Connection Properties or turn on refreshing when the file opens.

What is the difference between Get & Transform and the old Power Query add-in?

Get & Transform is the built-in version of the Power Query experience. Since Excel 2016 it ships with Excel, so you do not need to install a separate add-in to import and transform web data.

Why are my imported headers in the wrong columns?

The page structure often includes a blank row or extra cells above the real headers. Open the query and use Fill Down to move the header text into place, replacing empty strings with null first if the blanks are not recognized.

Can I import a table from any website?

Excel can read tables that are present in the page HTML. Pages that load their data dynamically, or that hide it behind logins, may not be readable, and a browser extractor may handle some of those cases better.

Which format should I choose, CSV, Excel, or Google Sheets?

Choose CSV for a clean, portable file that opens anywhere. Choose Excel when you want formulas, formatting, and refreshable queries. Choose Google Sheets when your team works in a shared browser-based spreadsheet and needs easy collaboration.


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