LVpwH‖

yBGiA‖EXPAND

5LotC‖Expand an array by adding rows or columns.

note

iZ2w7‖Enter the formula as an array formula. Hint: enter formula using keys Ctrl + Shift + Enter.


ebLBc‖Syntax

6QdBp‖=EXPAND(Array; Rows [; Columns [; Pad_with]])

ppWFd‖Array: the array or range to expand by the number of rows and/or columns.

dyQRu‖Rows: the final number of rows the array will expand. Default is total rows.

Kk5Vz‖Columns: (optional) The final number of columns the array will expand. Default is total columns.

xoxMh‖Pad_with: (optional) a specified value to pad in new cells. By default, #N/A is used to fill the new cells.

note

s37P8‖Any of the optional arguments can be omitted. An optional argument requires all preceding separators to be present.


GAZG2‖Examples

KAvDE‖Consider the array A1:E3 below:

 

A

B

C

D

E

1

AAA

BBB

CCC

DDD

EEE

2

FFF

 

 

III

JJJ

3

KKK

LLL

MMM

NNN

OOO


3923w‖The formula {=EXPAND(A1:E3;4;7;"@@@")} expands the array A1:E3 to 7 columns and 4 rows, padding the extra cells with the string "@@@".

AAA

BBB

CCC

DDD

EEE

@@@

@@@

FFF

 

 

III

JJJ

@@@

@@@

KKK

LLL

MMM

NNN

OOO

@@@

@@@

@@@

@@@

@@@

@@@

@@@

@@@

@@@


XAFa7‖Technical information

tip

QgTYx‖This function is available since LibreOfficeDev 25.8.


2C7vt‖This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.EXPAND