Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What does the IMPORTHTML function do in Google Sheets?
It imports data from a table or list on a web page directly into your spreadsheet.
Click to reveal answer
beginner
What are the required arguments for IMPORTHTML?
You need to provide: 1) The URL of the web page as text, 2) The query type as "table" or "list", and 3) The index number of the table or list on the page.
Click to reveal answer
beginner
How do you specify which table to import if a page has multiple tables?
Use the index number as the third argument. For example, 1 for the first table, 2 for the second, and so on.
Click to reveal answer
beginner
Example: =IMPORTHTML("https://example.com", "table", 1) - What does this do?
It imports the first table found on the web page at https://example.com into your sheet.
Click to reveal answer
beginner
What happens if IMPORTHTML cannot find the table or list you asked for?
It shows an error like #N/A or #REF! because it can't find the data to import.
Click to reveal answer
Which argument in IMPORTHTML specifies the type of data to import?
AThe query type ("table" or "list")
BThe URL
CThe index number
DThe sheet name
✗ Incorrect
The second argument tells IMPORTHTML whether to import a "table" or a "list" from the web page.
What does the index number in IMPORTHTML represent?
AThe number of rows to import
BThe number of columns to import
CWhich table or list on the page to import
DThe sheet tab number
✗ Incorrect
The index number selects which table or list on the web page to import, starting at 1.
If a web page has 3 tables, how do you import the second one?
A=IMPORTHTML(URL, "list", 2)
B=IMPORTHTML(URL, "table", 2)
C=IMPORTHTML(URL, "table", 3)
D=IMPORTHTML(URL, "list", 1)
✗ Incorrect
Use "table" as the query type and 2 as the index to import the second table.
What type of data can IMPORTHTML NOT import?
AImages
BLists
CTables
DText inside tables
✗ Incorrect
IMPORTHTML imports tables or lists but cannot import images.
What should you do if IMPORTHTML returns an error?
AUse a different spreadsheet program
BChange the sheet name
CRestart Google Sheets
DCheck the URL and index number
✗ Incorrect
Errors often happen if the URL is wrong or the index number does not match any table or list on the page.
Explain how to use IMPORTHTML to bring a web table into your Google Sheet.
Think about what each part of the formula means.
You got /4 concepts.
What are common reasons IMPORTHTML might fail to import data?
Consider what could go wrong with the web page or formula.
You got /4 concepts.
Practice
(1/5)
1. What does the IMPORTHTML function do in Google Sheets?
easy
A. It imports tables or lists from a web page into your spreadsheet.
B. It imports images from a web page into your spreadsheet.
C. It exports your spreadsheet data to a web page.
D. It creates charts based on web page data.
Solution
Step 1: Understand IMPORTHTML purpose
The IMPORTHTML function is designed to pull data from web pages, specifically tables or lists.
Step 2: Identify correct data type imported
It imports structured data like tables or lists, not images or charts.
Final Answer:
It imports tables or lists from a web page into your spreadsheet. -> Option A
Quick Check:
IMPORTHTML imports tables/lists [OK]
Hint: IMPORTHTML grabs tables or lists from URLs [OK]
Common Mistakes:
Thinking it imports images or charts
Confusing IMPORTHTML with export functions
Assuming it imports unstructured text
2. Which of the following is the correct syntax to import the first table from a webpage using IMPORTHTML?
easy
A. =IMPORTHTML("http://example.com", "list", 1)
B. =IMPORTHTML("http://example.com", "table")
C. =IMPORTHTML("http://example.com", "table", 1)
D. =IMPORTHTML("http://example.com", 1, "table")
Solution
Step 1: Recall IMPORTHTML syntax
The syntax is IMPORTHTML(url, query, index) where query is "table" or "list" and index is the number of the table or list.
Step 2: Check each option
=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.
Final Answer:
=IMPORTHTML("http://example.com", "table", 1) -> Option C
Hint: Syntax: IMPORTHTML(URL, "table" or "list", index) [OK]
Common Mistakes:
Omitting the index number
Swapping parameter order
Using wrong query type like "list" when table needed
3. Given the formula =IMPORTHTML("https://example.com/data", "table", 2), what will it do?
medium
A. Import the first list from the webpage at https://example.com/data
B. Import the second table from the webpage at https://example.com/data
C. Import the second list from the webpage at https://example.com/data
D. Import the first table from the webpage at https://example.com/data
Solution
Step 1: Analyze the IMPORTHTML parameters
The formula uses "table" as the query and 2 as the index, so it targets the second table on the page.
Step 2: Match parameters to options
Import the second table from the webpage at https://example.com/data correctly states it imports the second table. Options A and C mention lists, which is incorrect. Import the first table from the webpage at https://example.com/data mentions first table, which is wrong index.
Final Answer:
Import the second table from the webpage at https://example.com/data -> Option B
Quick Check:
"table" + 2 = second table imported [OK]
Hint: Index number picks which table or list to import [OK]
Common Mistakes:
Confusing 'table' with 'list'
Mixing up index numbers
Assuming it imports all tables at once
4. You wrote =IMPORTHTML("https://example.com", "table", "first") but get an error. What is the problem?
medium
A. The formula needs an extra parameter for headers.
B. The URL must end with .html to work.
C. The query parameter should be "list" instead of "table".
D. The index parameter must be a number, not text.
Solution
Step 1: Check the index parameter type
The third parameter must be a number indicating which table or list to import. "first" is text, causing an error.
Step 2: Verify other parameters
The URL can be any valid URL, no need to end with .html. The query "table" is valid. No extra parameter for headers is required.
Final Answer:
The index parameter must be a number, not text. -> Option D
Quick Check:
Index must be numeric [OK]
Hint: Index must be a number, not words [OK]
Common Mistakes:
Using text instead of number for index
Thinking URL must end with .html
Adding unnecessary parameters
5. You want to import the third table from a webpage but the page has only two tables. What will =IMPORTHTML("https://example.com", "table", 3) return?
hard
A. It will return an error indicating the table does not exist.
B. It will import the second table instead.
C. It will import an empty table with no data.
D. It will import the first table by default.
Solution
Step 1: Understand IMPORTHTML behavior with invalid index
If the index number is higher than the number of tables on the page, IMPORTHTML cannot find the requested table.
Step 2: Result of requesting non-existent table
Google Sheets returns an error because the requested table does not exist; it does not default to another table or return empty data.
Final Answer:
It will return an error indicating the table does not exist. -> Option A