TableToSheet

Combine a multi-page web table into one spreadsheet

Updated November 16, 2026

Many useful tables on the web are split across pages: search results, reports, standings, transaction lists. Each page shows a slice, with a Next button, page numbers, or a "Show 25 / 50 / 100" control. If you only copy the first page, you miss the rest. This guide shows how to gather every page into one Excel sheet or CSV file, then clean it so you can sort, filter or build a PivotTable.

1. See whether the page can show every row at once

Before you copy anything, look for a control that changes how many rows appear:

If the table is public and not behind a login, Excel's Data → From Web import is worth a try, but it often returns only the first page. For the details of that method, and of copy-paste and CSV, see how to export a web table to Excel or CSV.

2. Export or copy the first page

Open a blank workbook and put the first page of the table in Sheet1, starting at cell A1:

Leave the header row in place for now. Note the column order so you can match it on later pages.

3. Repeat for every remaining page and stack the rows

  1. Click Next (or the next page number) and wait until the table finishes updating.
  2. Export or copy that page the same way you did the first.
  3. In Excel, go to the first empty row under the data you already have and paste, or open the new export and copy the data rows onto the combined sheet.
  4. Repeat until you have reached the last page. If the site shows "Page 3 of 12" or "Showing 41–60 of 240", use that as a checklist so you don't skip a page.

If you exported a separate file per page, you can also stack them with Power Query: Data → Get Data → From File → From Folder, then combine the files. This only works when every file has the same columns in the same order.

4. Remove repeated header rows and blank rows

Each pasted page usually brings its own header row, so the combined sheet has the real header at the top and copies of it scattered through the data. Turn on a filter (Data → Filter), filter the first column for the header text, and delete those rows. Also delete blank rows and any "Page 2 of 12" or totals rows the site inserted at the bottom of a page.

If a later page has an extra column, or the columns are in a different order, fix that page before you stack it. A PivotTable or a simple sort will be wrong if the columns don't line up.

5. Check the row count against the site

Select the data (not the header) and look at the count in Excel's status bar, or use =COUNTA(A2:A10000) on a column that is never empty. Compare that number with the site's total, such as "240 results". If you are short, a page was skipped, a filter was still on, or the last page didn't finish loading before you copied it. If you have too many rows, a header or a totals row is still in the data, or a page was pasted twice.

Duplicates across pages are less common, but they happen when a sort changes mid-way or a new row appears while you are paging. Select the whole range and use Data → Remove Duplicates if each row should be unique.

6. Save as one Excel workbook or a CSV file

Once the grid is clean, turn it into an Excel Table with Insert → Table so new sorts and filters stay on the header row. To share the data with another tool, use File → Save As and pick CSV UTF-8 (Comma delimited). A CSV holds only one sheet and no formatting or formulas.

From here you can turn the combined table into an Excel Pivot Table. Using Google Sheets instead? The same stack-and-clean steps work after you copy a table from a website into Google Sheets.