TableToSheet

How to turn a web table into an Excel Pivot Table

Updated November 9, 2026

A PivotTable is the fastest way to summarize a table you pulled off a website: totals by region, counts by status, averages by category. The hard part is usually getting a clean grid into Excel first. This guide covers getting the table in, fixing common paste problems, and building the PivotTable.

1. Get the web table into Excel

Pick the method that matches the page:

Need more detail on each export option? See how to export a web table to Excel or CSV.

2. Clean the columns before you pivot

PivotTables need real numbers and one header row. Fix these before you insert one:

3. Turn the range into an Excel Table

  1. Click any cell inside the cleaned grid.
  2. Choose Insert → Table (or press Ctrl+T / ⌘T) and confirm that the range has headers.
  3. Optional but useful: name the table under Table Design → Table Name (for example WebData) so the PivotTable source is easy to spot later.

Tables expand when you paste new rows at the bottom, which makes refreshing the PivotTable simpler.

4. Build the PivotTable

  1. With a cell in the table selected, choose Insert → PivotTable.
  2. Confirm the table name as the source and choose a new worksheet for the result.
  3. In the PivotTable Fields pane, drag fields into place:
    • Rows: the category you want to group by (Region, Status, Product, and so on)
    • Columns: a second grouping if you need a matrix (for example Month)
    • Values: the number to total, count or average
    • Filters: any field you want to slice by without putting it in the grid
  4. Click the value field's drop-down to switch between Sum, Count, Average and other summaries.

5. Useful PivotTable moves for web data

6. Refresh when the website changes

Which export path fits a PivotTable?

Using Google Sheets instead of Excel? Start with how to copy a table from a website into Google Sheets, then insert a Pivot table from the Data menu. Need transactions from a PDF bank statement rather than a web page? See bank statement PDF to Excel.