Dashboard Mode - IMPORTRANGE for cross-spreadsheet data
Goal
See sales data from another Google Sheet in this sheet to analyze total sales and average sales per region.
See sales data from another Google Sheet in this sheet to analyze total sales and average sales per region.
Source Spreadsheet (Sales Data):
| Region | Sales |
|---|---|
| North | 100 |
| South | 200 |
| East | 150 |
| West | 120 |
| North | 130 |
| South | 220 |
Destination Spreadsheet (this sheet):
| Imported Data |
|---|
| Using IMPORTRANGE formula to get data from source sheet |
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123xyz456/edit#gid=0", "Sheet1!A2:B7")=SUM(IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123xyz456/edit#gid=0", "Sheet1!B2:B7"))=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123xyz456/edit#gid=0", "Sheet1!A2:B7"), "select Col1, avg(Col2) group by Col1 label avg(Col2) 'Average Sales'", 0)+----------------------+-----------------------+ | Imported Sales Data | Total Sales KPI | | Table | (Sum of Sales) | | | | +----------------------+-----------------------+ | Average Sales per Region (Grouped Table) | +--------------------------------------------------+
Add a filter dropdown for Region. When you select a region, the Imported Sales Data Table, Total Sales KPI, and Average Sales per Region table update to show data only for that region.
This can be done by adding a filter formula or using a slicer connected to the imported data range.
If you add a filter to show only the "South" region, which components update?
IMPORTRANGE function do in Google Sheets?IMPORTRANGE function?=IMPORTRANGE(spreadsheet_url, range_string).=IMPORTRANGE(spreadsheet_url, range_string) matches the correct syntax. =IMPORTRANGE(range_string, spreadsheet_url) reverses the parameters, and options A and C miss the required second argument.=IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123", "Sheet1!A1:B2"), what will be imported?=IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123", "Sheet1!A1:B2") but see a #REF! error. What is the most likely fix?=ARRAYFORMULA({IMPORTRANGE("url", "Sheet1!A1:B5"); IMPORTRANGE("url", "Sheet2!A1:B5")}) correctly uses {range1; range2} inside ARRAYFORMULA to combine vertically. =IMPORTRANGE("url", "Sheet1!A1:B5") + IMPORTRANGE("url", "Sheet2!A1:B5") tries to add ranges (invalid). =IMPORTRANGE("url", "Sheet1!A1:B5") & IMPORTRANGE("url", "Sheet2!A1:B5") uses & which concatenates text, not ranges. =IMPORTRANGE("url", "Sheet1!A1:B5, Sheet2!A1:B5") tries to specify two ranges in one IMPORTRANGE call, which is invalid.Pass the test and this pattern moves unknown