0
0
Google Sheetsspreadsheet~20 mins

IMPORTHTML for web tables in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
IMPORTHTML Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
What does this IMPORTHTML formula return?
Given the formula =IMPORTHTML("https://en.wikipedia.org/wiki/List_of_countries_by_population_(United_Nations)", "table", 1) in cell A1, what will be the output in the first row of the imported table?
AA blank cell because the table index is incorrect
BThe first country's name and population data only
CAn error because the URL is invalid
DThe header row with column titles like 'Country or area' and 'Population (1 July 2023)'
Attempts:
2 left
💡 Hint
IMPORTHTML imports the entire table including headers, not just data rows.
Function Choice
intermediate
2:00remaining
Which formula correctly imports the second table from a webpage?
You want to import the second table from https://example.com/data. Which formula will do this correctly?
A=IMPORTDATA("https://example.com/data", "table", 2)
B=IMPORTHTML("https://example.com/data", "list", 2)
C=IMPORTHTML("https://example.com/data", "table", 2)
D=IMPORTHTML("https://example.com/data", "table", 1)
Attempts:
2 left
💡 Hint
The third argument is the table index starting at 1.
🎯 Scenario
advanced
2:00remaining
You want to import a table but get a #N/A error. What is the likely cause?
You used =IMPORTHTML("https://example.com/page", "table", 1) but the cell shows #N/A. What is the most likely reason?
AThe webpage does not have any tables or the table index is wrong
BThe formula syntax is incorrect
CGoogle Sheets does not support IMPORTHTML
DYour internet connection is offline
Attempts:
2 left
💡 Hint
Check if the webpage actually contains tables and the index matches.
📊 Formula Result
advanced
2:00remaining
What happens if you use IMPORTHTML with a list type on a page with no lists?
Formula: =IMPORTHTML("https://en.wikipedia.org/wiki/List_of_countries_by_population_(United_Nations)", "list", 1)
What will be the result?
A#N/A error because there are no lists on the page
BThe first table on the page is imported instead
CAn empty range with no data
DThe entire webpage content is imported as text
Attempts:
2 left
💡 Hint
IMPORTHTML requires the specified element type to exist on the page.
data_analysis
expert
2:00remaining
How many rows will be imported by this formula?
You use =IMPORTHTML("https://en.wikipedia.org/wiki/List_of_countries_by_population_(United_Nations)", "table", 1). The first table has 235 rows including the header. How many rows will appear in your sheet?
A234 rows excluding the header row
B235 rows including the header row
C236 rows because an extra empty row is added
DOnly the first 100 rows due to Google Sheets limits
Attempts:
2 left
💡 Hint
IMPORTHTML imports the entire table as is, including headers.