LightCube Data Extractor

Copy Website Table to Excel Not Working? Fix It This Way

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

Copy website table to Excel not working usually means the paste broke the layout, the values are stale, or the columns you removed came back. The reliable fix is to connect Excel directly to the page with Get Data, From Web, then use Power Query to clean the table and refresh it on demand.

TL;DR: - Use Data, Get Data, From Web instead of copy and paste when a table needs to stay current. - Pick the right table from the preview list, then load it or transform it. - Make column edits in Power Query, not on the sheet, so refreshes do not undo your work. - Refresh from the Data tab or Table Design tab to pull in new values, charts, and pivot tables.

Why Does Copying a Website Table to Excel Fail?

The most common reason copy website table to Excel not working is that a plain paste grabs formatting, merged cells, or a visual layout that was never a real table. The second reason is staleness: you copy once, and the numbers on the page change while your spreadsheet does not. A third reason is that you delete columns directly in the worksheet, then refresh, and the deleted columns reappear because the underlying query still returns every column.

Connecting Excel to the page itself avoids all three problems. Excel reads the table structure from the page, keeps a link to it, and gives you a refresh button. You also get a place to rename columns and remove the ones you do not need without fighting the refresh.

How Do You Pull a Website Table Into Excel?

  1. Open the page that holds the table and copy the page address from the browser bar.
  2. In Excel, go to Data, then Get Data, then From Web. If From Web is not visible, use Data, Get Data, From Other Sources, From Web.
  3. Paste the address into the URL box and confirm. Excel loads a preview listing every table it found on the page.
  4. Click through the listed tables until you find the one with the columns you want. Each table has its own preview pane, so check the headers and first rows.
  5. Choose Load to place the table on a new sheet, or choose Transform Data to clean it in Power Query first.
  6. Open the Data tab and run Refresh All to pull the current values into the sheet.

Which Table Should You Choose From the Preview?

Web pages often contain several tables: navigation blocks, promotional panels, and the actual data grid. Excel shows them as numbered items in the left panel of the preview. Click each one and read the headers in the right pane. The table you want is the one whose first column matches the row labels you expect, such as product names, ticker symbols, or dates.

If the page has no table at all, Excel cannot create one from nothing. Some sites render their grids with scripts after the page loads, and some hide data behind a login or a click. In those cases a browser extension that reads the rendered table works better than the From Web connector. You can also try the LightCube Data web tool at LightCube Data to extract a table and export it to CSV, Excel, or Google Sheets without setting up a query.

How Do You Fix Columns That Disappear After a Refresh?

Do not delete columns on the worksheet. A worksheet delete only changes the display, and the next refresh restores the original structure. Instead, edit the query.

  1. Go to Data, then Queries and Connections, and find the query for your table.
  2. Right-click the query and choose Edit to open the Power Query Editor.
  3. Right-click a column header and choose Rename to give it a clearer name.
  4. Right-click unwanted columns and choose Remove Columns.
  5. Click Close and Load to apply the changes and bring the cleaned table back to the sheet.

Now the sheet shows only the columns you kept, and a refresh updates both the values and the layout.

How Do You Keep the Values Up to Date?

Refresh from the Data tab and choose Refresh All. If you have selected a single table, use Refresh on the Table Design tab instead. Excel reconnects to the page, re-reads the table, and updates the cells. Any pivot table or chart built on that range updates with it, so you do not have to rebuild the visuals each time.

Refresh All is the safer choice when you have several queries in one workbook, because it updates all of them at once. Give it a few seconds on a large page. If a refresh returns an error, the page may have changed its markup, the address may have moved, or the site may require a sign-in that Excel cannot complete.

Should You Use Excel, CSV, or Google Sheets?

Need Best fit Why
A one-time copy for analysis CSV export Simple, portable, opens anywhere
A live link that refreshes Excel From Web Keeps the connection and query
Sharing with teammates Google Sheets Everyone sees the same file
A page Excel cannot read Browser extension Reads the table as rendered on screen

CSV is the quickest path when the data is a snapshot and you do not care about future changes. Excel is the right tool when values shift often and you want charts or pivot tables on top. Google Sheets suits collaborative work. When the built-in connector fails, a browser extension fills the gap.

What If Excel Cannot Find the Table on the Page?

Try these fixes in order. First, confirm you copied the full page address and not a shortened link. Second, scroll the preview list, since the table you need may be the third or fourth item. Third, check whether the page loads more rows as you scroll, because Excel only captures what the page returns initially.

Fourth, if the site blocks the request, open the table in a browser extension that extracts what you see and export it to CSV or Excel. You can test the same workflow with LightCube Data, which extracts and exports HTML tables from any page to CSV, Excel, or Google Sheets. Fifth, if the data sits behind a login, export it from the page you are already signed into rather than trying to connect anonymously.

How Do You Build a Pivot Table or Chart From the Imported Data?

Once the table is loaded, treat it like any other Excel table. Click inside the range, then go to Insert and choose PivotTable, then From Table/Range. Drag the field you want to group into Rows and the numeric field into Values. For a chart, select the range, go to Insert, and pick a chart type. Filter the chart to show only the rows you care about, such as a handful of items out of a long list.

Because the chart and pivot table point at the query range, a refresh updates them along with the cells. That is the real payoff of connecting to the page rather than pasting it.

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

Why does my pasted table lose its formatting in Excel?

A normal paste brings across whatever the page rendered, including styling and merged cells. Use Data, Get Data, From Web instead, and load the table as a structured range.

Why do my deleted columns come back after I refresh?

Deleting columns on the worksheet only hides them from view. The query still returns every column, so the refresh restores them. Remove the columns in Power Query and close and load.

Does Excel need to stay open for the table to update?

No. Excel updates the data when you run a refresh while the workbook is open. It does not pull new values in the background while the file is closed.

Can I import a table from any website?

Excel can import most tables on public pages, but it struggles with tables that load through scripts, sit behind a login, or block automated requests. A browser extension that reads the rendered page handles those cases.

Which format should I export to for Google Sheets?

CSV is the most reliable format for Google Sheets because it imports cleanly and preserves row and column structure. XLSX also works when you want formatting and multiple sheets.


Based on a video by ** Web Scraping|NA**: How to Pull Live Website Data into Excel Automatically . Written in our own words with added steps and an FAQ.

More guides