EXPAND Function
Expand an array to a number of rows and columns. rows and columns are the size of the result, the size of array when omitted, and pad_with fills the new cells, #N/A when omitted. A size smaller than the array returns #VALUE!.
Syntax
EXPAND(array, rows, columns, pad_with)
Category: Lookup. Minimum arguments: 2. Maximum arguments: 4.
Available for supported offline calculation.
Examples
=EXPAND({1,2},2,3,0)
The formula returns the 2 × 3 array {1,2,0;0,0,0}.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.