Data Import & Export

Import a Second HTML Table into Excel from a Web Page with WPS Spreadsheet

Maira MehtabMaira Mehtab Nov 13, 2026 869 views

Question details

The user needs to import a second HTML table from a web page into a spreadsheet because Excel Web Query only returns the first table and misses the second table.

Import a Second HTML Table into Excel from a Web Page with WPS Spreadsheet
Product
WPS Spreadsheet / Microsoft Excel
Device & OS
not provided
Scenario
The user is importing data from a web page that contains multiple HTML tables and needs the second table for analysis in Excel or WPS Spreadsheet.
Observed behavior
Excel's standard Web Query imports the first table but does not detect or import the second table.
Before you start

Open the target web page in a browser and confirm that the second table is visible in the rendered page or present in the page source. Copy the full page URL before starting, because the import tool needs the exact same address to fetch available tables.

Solution 1Recommended

Import the second HTML table with WPS Spreadsheet's From Web tool

Use this direct method when you want to stay in a spreadsheet and select the second table from the import preview instead of relying on Excel's default first-table behavior.

Excel Web Query often parses only the first simple <table> element and can miss a second table that is nested or structured differently. WPS Spreadsheet shows a table selection dialog, so you can choose the exact table to import.

1
Open the From Web import tool

In WPS Spreadsheet, open a blank workbook, click the Data tab, then choose Import Data > From Web.

2
Enter the web page URL

Paste the full URL of the web page into the address field and click Go or OK to load the page preview.

3
Select the second table

When the table list or Navigator appears, look for the second table entry, select it, and preview the rows and columns to confirm it is the correct table.

4
Load the table into the sheet

Choose the destination cell or leave the default location, then click Load to import the selected second table.

Import the second HTML table with WPS Spreadsheet's From Web tool
Second table imported: After loading, check the header row and row count against the web page to confirm you imported the second table rather than the first.
Direct WPS Spreadsheet import

Import the Second HTML Table Directly in WPS Spreadsheet

WPS Spreadsheet gives you a table selection step when importing from the web, so you can load the second HTML table into a familiar spreadsheet and continue working without switching to Power BI.

  1. 1. Open the web import tool: Open WPS Spreadsheet and click Data > Import Data > From Web.
  2. 2. Load the page preview: Enter the web page URL and load the available table preview.
  3. 3. Select the second table: Select the second HTML table from the table list.
  4. 4. Import the table: Choose the destination cell and click Load to import it.
  5. 5. Save for Excel compatibility: Save the workbook in .xlsx format to keep Excel compatibility.
Select the exact HTML table instead of being limited to the first table.Maintains Microsoft Excel .xlsx format compatibility.Free, lightweight spreadsheet app with a familiar Data tab.No separate Power BI installation required for simple web table imports.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel Web Query only import the first HTML table?

Excel's standard Web Query often reads the first simple <table> element and does not expose a second table that is nested, dynamically generated, or skipped by its parser. A connector that shows a table list, such as WPS Spreadsheet's From Web import or Power BI Desktop, helps you select the second table manually.

How do I import the second table in WPS Spreadsheet?

Open WPS Spreadsheet, go to Data > Import Data > From Web, paste the page URL, and in the table preview or Navigator select the second table before clicking Load.

Can Excel 365's Power Query Web connector detect both tables?

In some Excel 365 versions, Data > Get Data > From Web may list additional tables in the Navigator. If the option is not available in your installation, use Power BI Desktop or WPS Spreadsheet as an alternative.

What if the second table is generated by JavaScript?

JavaScript-generated content may not be present in the initial HTML fetched by the import tool. Open the browser developer tools to find the underlying data request, or copy the rendered table from the browser and paste it into WPS Spreadsheet.

Does WPS Spreadsheet remain Excel-compatible after importing this table?

Yes. After the import, save the workbook as .xlsx, and the file remains compatible with Microsoft Excel while keeping the imported table structure and formatting.