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 |
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 | +----+---------+---------+