0
0
Google Sheetsspreadsheet~20 mins

Linking Sheets with Docs in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Google Docs Linking Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
What is the output of this formula linking a Google Doc?
You have a Google Sheet with this formula in cell A1:

=IMPORTDATA("https://docs.google.com/document/d/e/2PACX-1vQabc12345/pub?output=csv")

What will this formula do?
AIt imports the published Google Doc content as CSV data into the sheet.
BIt imports the Google Doc as an image into the sheet.
CIt creates a live link to open the Google Doc but does not import data.
DIt returns a #REF! error because IMPORTDATA cannot read Google Docs.
Attempts:
2 left
💡 Hint
Think about what IMPORTDATA does with URLs that point to CSV or TSV files.
Function Choice
intermediate
2:00remaining
Which function correctly imports a table from a published Google Doc into Sheets?
You want to import a table from a Google Doc published as a web page. Which function should you use in Google Sheets?
AIMPORTXML
BIMPORTDATA
CIMPORTRANGE
DIMPORTHTML
Attempts:
2 left
💡 Hint
Think about which function imports tables or lists from web pages.
🎯 Scenario
advanced
2:00remaining
You want to keep your Google Sheet updated with changes from a Google Doc table. What is the best approach?
You have a Google Doc with a table that changes often. You want your Google Sheet to update automatically when the Doc changes. Which method is best?
ACopy and paste the table manually each time it changes.
BPublish the Google Doc as a web page and use IMPORTHTML in Sheets to import the table.
CUse IMPORTRANGE to link the Google Doc to the Sheet.
DDownload the Google Doc as Excel and upload it to Sheets.
Attempts:
2 left
💡 Hint
Consider which method allows automatic updates without manual work.
📊 Formula Result
advanced
2:00remaining
What error will this formula produce?
In Google Sheets, you enter:

=IMPORTRANGE("https://docs.google.com/document/d/abc123", "Sheet1!A1:B2")

What will happen?
A#REF! error because IMPORTRANGE cannot import from Google Docs.
BIt imports the entire Google Doc as text.
C#VALUE! error because the URL is invalid.
DIt imports the range A1:B2 from the Google Doc.
Attempts:
2 left
💡 Hint
IMPORTRANGE works only with Google Sheets URLs.
data_analysis
expert
2:00remaining
How many rows will be imported by this formula?
You publish a Google Doc containing a table with 5 rows and 3 columns as a web page. In Google Sheets, you use:

=IMPORTHTML("published_doc_url", "table", 1)

How many rows will this formula import?
A6 rows including an extra empty row
B4 rows excluding the header row
C5 rows including the header row
DOnly 1 row because IMPORTHTML imports headers only
Attempts:
2 left
💡 Hint
IMPORTHTML imports the entire table including headers.