Lookup and referenceExcel 2024

EXPAND

Pad an array to a larger height or width with a chosen fill value.

Syntax

=Expand(array, rows, [columns], [pad_with])

Worked example

Pad a one-row input with a second row of zeros.

=EXPAND({2,4},2,2,0)

Result 2, 4 / 0, 0

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor