Dashboard Mode - IMPORTHTML for web tables
Dashboard Goal
Show live data from a web page table about the top 5 countries by population. This helps track population numbers without manual updates.
Jump into concepts and practice - no test required
Show live data from a web page table about the top 5 countries by population. This helps track population numbers without manual updates.
| Country | Population (millions) |
|---|---|
| China | 1441 |
| India | 1393 |
| United States | 332 |
| Indonesia | 276 |
| Pakistan | 225 |
=IMPORTHTML("https://www.worldometers.info/world-population/population-by-country/", "table", 1)=QUERY(A2:C, "SELECT Col1, Col2 LIMIT 5", 1)=SUM(B3:B7)+-----------------------------+ | Web Table Import | | (Raw Data) | | (A2:C100) | +-----------------------------+ | Top 5 Countries Table | Total Population | | (A12:B17) | (B18) | +-----------------------------+
When the web page updates, the Web Table Import refreshes automatically. This updates the Top 5 Countries Table and the Total Population sum instantly, keeping the dashboard live without manual changes.
If the website adds a new country with a higher population than Pakistan, which dashboard components update and how?
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?