LightCube Data Extractor

How to Export Website Table to Spreadsheet (Excel & Sheets)

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

Exporting a website table to a spreadsheet usually means copying HTML table data into Excel or Google Sheets. The fastest method depends on whether you need a one-time copy or a live connection that refreshes when the page changes.

TL;DR: - Copy and paste works for a quick, one-time table export, but the data becomes a static snapshot. - Excel's From Web tool connects to the page so you can refresh the table with one click. - Clean headers, remove unused columns, and fix blank cells before loading the data. - For non-technical users, a browser extension or web tool can export straight to CSV, Excel, or Google Sheets.

What is the fastest way to export a website table to a spreadsheet?

The fastest way depends on the job. For a one-time copy, select the table on the page, copy it, and paste it into Excel or Google Sheets, which usually keeps the rows and columns intact. For recurring work, use a live connection such as Excel's From Web feature or a browser-based extractor so the spreadsheet pulls fresh data from the source page instead of holding an old snapshot.

Should you copy and paste or connect the table to the page?

Copy and paste is quick and familiar. You highlight the table, press Ctrl+C, open your spreadsheet, and press Ctrl+V. Excel often recognizes the rows and columns correctly on the first try.

The limitation is that the paste is disconnected from the web page. If the table updates tomorrow, your spreadsheet still shows yesterday's numbers, and you have to repeat the whole process. A connected table keeps a link to the source, so refreshing replaces the data in place.

Method Best for Refreshes automatically Setup effort
Copy and paste One-time export No Very low
Excel From Web Recurring Excel reports Yes, on refresh Medium
Browser extension or web tool Quick exports to CSV, Excel, or Sheets Varies by tool Low

How do you import a web table into Excel step by step?

Excel's Get and Transform tools have been built into Excel since Excel 2016, replacing the separate Power Query add-in. Here is the process:

  1. Open the web page that contains the table and copy the page URL from your browser's 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 confirm. Excel opens the Query Editor and scans the page for tables.
  4. Switch between Table View and Web View to confirm you are looking at the right table on the right page.
  5. Select the table you want, then choose Load To and pick Existing Worksheet or a new worksheet.
  6. Close and load the query. The table now appears in your workbook with a live connection to the page.
  7. To update it later, right-click the table and choose Refresh, or use the Refresh button on the Data tab.

How do you clean the table before it loads?

Most web tables need tidying before they are useful in a spreadsheet. Open the query by double-clicking it in Excel, then work in the Query Editor.

Common fixes include removing columns you do not need, correcting headers that shifted into the wrong row, and changing data types so numbers are treated as numbers rather than text. If you plan to calculate with a column, set its type explicitly, for example converting a temperature column to a decimal number so you can convert it to Celsius.

Blank cells can also cause problems when formulas reference them. If a Fill Down step appears to do nothing, the cells may contain empty strings rather than true blanks. Use Replace Values to swap the empty string with null, then apply Fill Down again. Finally, rename the query to something descriptive so you recognize it later, then choose Close and Load.

How do you keep the spreadsheet updated automatically?

Once the query is loaded, refreshing is a single action. Right-click the table and select Refresh, or click Refresh on the Data tab. You can also right-click and open Connection Properties to set a refresh interval, such as every 60 minutes, or to refresh the data each time the file is opened.

This is the core advantage over copy and paste. A connected table keeps the transformation steps you applied, so every refresh reapplies them. If you add a conditional column that flags certain rows, that rule stays in place each time new data arrives.

Can you export a website table to Google Sheets or CSV instead?

Yes. Google Sheets has its own import options, including pasting HTML directly into a cell or using a URL-based import formula, though the behavior varies with how the page is structured. CSV is the most portable format because most tools read it and it moves cleanly between Excel, Sheets, and databases.

If you do not want to configure a query, a browser-based option is simpler. LightCube Data is a browser extension and web tool for extracting and exporting HTML tables from any page to CSV, Excel, or Google Sheets. You point it at the table, preview the result, and export it without writing a formula or editing a query.

What should you do when a table does not import correctly?

Start by checking that you selected the correct table in the Query Editor. Pages often contain several tables, including navigation layouts and promotional blocks, so switching between Table View and Web View helps you confirm the right one.

Next, look at the headers. When a page uses complex markup, the first row may hold a title and the real column names may sit in the second row. Promote headers and remove the extra row so your spreadsheet starts with usable labels.

Finally, check for merged cells and hidden rows, which often cause shifted values. If a column contains text where you expect numbers, set the data type manually. If the page loads its data with JavaScript after the initial load, a simple URL import may return an empty result, and a browser extension that reads the rendered page is the better choice.

How do you add a custom column to the imported table?

You can add calculated or conditional columns inside the query so they update with every refresh. Open the query, choose Add Column, then Conditional Column. Name the new column and define rules such as "if the description column contains rain, show an umbrella symbol" and "if it contains shower, show the same symbol," with a blank result otherwise.

Copy the symbol to your clipboard before you enter the Query Editor, then paste it into the rule. Once the column appears, drag it into position next to the related column and choose Close and Load. The new column now refreshes along with everything else.

FAQ

Does copying a web table into Excel break the formatting?

Often the structure survives, but styling, merged cells, and some visual formatting do not carry over cleanly. Check the pasted result and fix headers or column widths before analyzing the data.

Does Excel refresh web tables on its own?

You can configure automatic refresh through Connection Properties, including a set interval or refreshing when the file opens. Manual refresh with one click is also available from the Data tab.

Can I export a table to CSV without opening Excel?

Yes. A browser extension or web tool can extract the table and download it as CSV directly, which is useful when you want a file for another system rather than an Excel workbook.

What if the page has several tables?

Use the Query Editor's table list or Web View to identify each one and select the specific table you need. In a browser-based extractor, you can usually click the table on the page to target it.

Is a live connection better than a static copy?

For recurring reports, yes, because the data stays current without repeating the copy and paste steps. For a one-time snapshot or an archive, a static copy is simpler and safer.

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 copying a web table into Excel break the formatting?

Often the structure survives, but styling, merged cells, and some visual formatting do not carry over cleanly. Check the pasted result and fix headers or column widths before analyzing the data.

Does Excel refresh web tables on its own?

You can configure automatic refresh through Connection Properties, including a set interval or refreshing when the file opens. Manual refresh with one click is also available from the Data tab.

Can I export a table to CSV without opening Excel?

Yes. A browser extension or web tool can extract the table and download it as CSV directly, which is useful when you want a file for another system rather than an Excel workbook.

What if the page has several tables?

Use the Query Editor's table list or Web View to identify each one and select the specific table you need. In a browser-based extractor, you can usually click the table on the page to target it.

Is a live connection better than a static copy?

For recurring reports, yes, because the data stays current without repeating the copy and paste steps. For a one-time snapshot or an archive, a static copy is simpler and safer.


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