EXPAND function
Expands or pads an array to specified row and column dimensions
Syntax
EXPAND(array, rows, [columns], [pad_with])Square brackets indicate optional arguments.
Arguments
| Argument | Required | Meaning |
|---|---|---|
| array | Yes | The array to expand.A2 |
| rows | Yes | The number of rows in the expanded array. If missing, rows will not be expanded.3 |
| columns | No | The number of columns in the expanded array. If missing, columns will not be expanded.3 |
| pad_with | No | The value with which to pad. The default is #N/A."-" |
Try EXPAND
Pad a two-by-two array with actual zeroes
=EXPAND(A2:B3,3,3,0)The original four entries stay at the top left. The added third column and third row contain the explicit padding value 0. Padding cannot shrink the source array.
Inspect the current formula
Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.
Read the formula, one argument at a time
Explore the written function calls and their inputs. The calculation result belongs to the complete formula.
EXPAND · top-level call
=EXPAND(A2:B3,3,3,0)Follow the cells behind a result
Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.
The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.
Reference and compatibility
Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.