EXPAND function in Excel
Expands or pads an array to specified row and column dimensions
=EXPAND(array, rows, [columns], [pad_with])EXPAND syntax and parameters
Four arguments, two required.
- arrayarrayRequired
The array to expand.
- rowsnumberRequired
The number of rows in the expanded array. If missing, rows will not be expanded.
- columnsnumberOptional
The number of columns in the expanded array. If missing, columns will not be expanded.
- pad_withanyOptional
The value with which to pad. The default is #N/A.
EXPAND examples
Formulas you'll actually reuse.
Grow a 9-row table to exactly 12 rows so it lines up with a template, padded with blanks:
=EXPAND(A2:C10, 12, 3, "")A column into a zero-filled 3×3 block — handy for matrix setups:
=EXPAND(SEQUENCE(3), 3, 3, 0)
EXPAND in Google Sheets
No direct equivalent — here's the way around.
Try EXPAND in the playground
Edit the example — nothing to install.
Preloaded with the EXPAND formula from Example 1 — change anything and watch it respond.
EXPAND errors
What they mean — and the fixes.
#VALUE!The target size is smaller than the source array — EXPAND only grows.
#N/AThe padding cells show #N/A because pad_with was omitted — pass "" or 0.
Related functions
More ways Excel gets this done.
- ADDRESSReturns a reference as text to a single cell in a worksheetLookupGoogle Sheets
- AREASReturns the number of areas in a referenceLookupNo Google Sheets equivalent
- CHOOSEChooses a value from a list of valuesLookupGoogle Sheets
- CHOOSECOLSReturns the specified columns from an arrayLookupGoogle Sheets
- CHOOSEROWSReturns the specified rows from an arrayLookupGoogle Sheets
- COLUMNReturns the column number of a referenceLookupGoogle Sheets