Array formulas
Formulas can return values that spans multiple cells
=IMPORTDATA("https://api.covidtracking.com/v1/us/daily.csv")
Collision detection
Creating a custom Array formula
Last updated
Formulas can return values that spans multiple cells
Spreadsheet can display formulas that return an array of values, which spans across multiple cells. This is useful if you want to display dynamic tabular data in the spreadsheet.
Below is a sample Array formula that fetches covid data
=IMPORTDATA("https://api.covidtracking.com/v1/us/daily.csv")With the power of Structured references, you can convert this data to table, and start filtering/sorting on this data.

If an array formula tries to overwrite a non-empty cell, a REF error is thrown.
Returning a 2-D array from a custom formula function will mark a cell as an array function cell.
Last updated
const MY_FUNCTION = (parser: FormulaParser, arg: FunctionArgument) => {
return [
[
"foo",
"bar"
]
]
}