Sample Data
Sample table of countries and their capitals, similar to a web table that IMPORTHTML would fetch.
| Cell | Value |
|---|---|
| A1 | Country |
| B1 | Capital |
| A2 | France |
| B2 | Paris |
| A3 | Germany |
| B3 | Berlin |
| A4 | Italy |
| B4 | Rome |
Jump into concepts and practice - no test required
Sample table of countries and their capitals, similar to a web table that IMPORTHTML would fetch.
| Cell | Value |
|---|---|
| A1 | Country |
| B1 | Capital |
| A2 | France |
| B2 | Paris |
| A3 | Germany |
| B3 | Berlin |
| A4 | Italy |
| B4 | Rome |
=IMPORTHTML("https://example.com/countries", "table", 1)Sheet:
+----+---------+---------+
| | A | B |
+----+---------+---------+
| 1 | Country | Capital |
| 2 | France | Paris |
| 3 | Germany | Berlin |
| 4 | Italy | Rome |
+----+---------+---------+
Formula in cell A1: =IMPORTHTML("https://example.com/countries", "table", 1)
Arrows: Formula fetches entire table into A1:B4Sheet after formula evaluation: +----+---------+---------+ | | A | B | +----+---------+---------+ | 1 | Country | Capital | | 2 | France | Paris | | 3 | Germany | Berlin | | 4 | Italy | Rome | +----+---------+---------+
IMPORTHTML function do in Google Sheets?=IMPORTHTML("http://example.com", "table", 1) matches the correct syntax with url, "table", and index 1. =IMPORTHTML("http://example.com", "list", 1) uses "list" instead of "table". =IMPORTHTML("http://example.com", "table") misses the index. =IMPORTHTML("http://example.com", 1, "table") has parameters in wrong order.=IMPORTHTML("https://example.com/data", "table", 2), what will it do?=IMPORTHTML("https://example.com", "table", "first") but get an error. What is the problem?=IMPORTHTML("https://example.com", "table", 3) return?