1. Home
  2. Functions
  3. Array
  4. ARRAYFORMULA

ARRAYFORMULA function

Returns the result of a formula that works on whole ranges, so it can spill.

Syntax

=ARRAYFORMULA(array_formula)

Arguments

ArgumentRequiredDescription
array_formulaRequiredA formula, range or array

How to use ARRAYFORMULA

When ARRAYFORMULA returns more than one value, the result spills into the cells below and to the right. Keep those cells empty, or you get #SPILL!.

ARRAYFORMULA takes 1 required argument. Type =ARRAYFORMULA( 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.

=ARRAYFORMULA({1,2}*2)Result 1 by 2 array
Spilled result
AB
124

Every formula, right in your browser

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