Arrayhard
ARRAYFORMULA()
Enables the display of values returned from an array formula into multiple rows/columns.
Syntax
fx
=ARRAYFORMULA(array_formula)
Example
fx
=ARRAYFORMULA(A2:A100 * B2:B100)
Paste this into Google Sheets to run it. The live playground on this site covers 24 of the 61 functions, and ARRAYFORMULA isn't one of them yet.
Common pitfalls
- Not all functions are array-aware. Wrapping in
ARRAYFORMULAwon't always cause spilling: test with a small range first. - Modern Sheets often spills automatically;
ARRAYFORMULAis mostly needed for legacy compatibility orIF/SUMPRODUCTpatterns. - Don't use whole-column refs (
A:A) insideARRAYFORMULA: it expands to thousands of rows and tanks performance.
Related formulas
Used by