IMPORTHTML in Google Sheets vs a Chrome extension
Use =IMPORTHTML(url, "table", n) when the page is public, the table is in the raw HTML, and you want the sheet to refresh automatically. Use a Chrome extension such as LightCube Data Extractor when the page needs a login, builds the table with JavaScript, or IMPORTHTML returns an error.
Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.
Add to Chrome, free ↗IMPORTHTML in 30 seconds
=IMPORTHTML("https://en.wikipedia.org/wiki/List_of_largest_cities", "table", 2)
The third argument is the table index on the page, starting at 1. Use "list" instead of "table" for bulleted lists.
When IMPORTHTML fails
- "Could not fetch URL": the site blocks Google servers or needs a login.
- "Imported content is empty": the table is built with JavaScript.
- Wrong table: the index counts hidden layout tables too.
Comparison
| IMPORTHTML | Extension | |
|---|---|---|
| Refreshes automatically | Yes | No, snapshot |
| Login pages | No | Yes |
| JavaScript tables | Often no | Yes, after render |
| Pick table visually | No, by index | Yes, with preview |
| Works outside Sheets | No | CSV, JSON, clipboard |
FAQ
- How do I find the table index?
- Trial and error with 1, 2, 3, or use the extension preview to see table order.
- Does IMPORTHTML refresh?
- Google re-fetches periodically, roughly hourly, and on reopen.
- Is there an IMPORTHTML for Excel?
- Excel uses Get Data > From Web, see the Excel comparison guide.
Related guides
Updated 2026-11-11.