1. Home
  2. Functions
  3. Web
  4. IMPORTRANGE

IMPORTRANGE function

Imports a range from another spreadsheet. Live web data is not available yet, so this returns #BLOCKED!.

Syntax

=IMPORTRANGE(spreadsheet_url, range_string)

Arguments

ArgumentRequiredDescription
spreadsheet_urlRequiredThe spreadsheet address
range_stringRequiredThe range, like "Sheet1!A1:C10"

How to use IMPORTRANGE

This function reads data from outside the workbook, so its result depends on what the source returns when the sheet calculates.

IMPORTRANGE takes 2 required arguments. Type =IMPORTRANGE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=IMPORTRANGE("https://example.com/s", "Sheet1!A1:B2")Result #BLOCKED!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.