EXPAND

Expand an array by adding rows or columns.

note

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


Syntaks

=EXPAND(Array;Rows;[Columns];[Pad_with])

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

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

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

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

note

Kva som helst av dei valfrie innstillingane kan sløydast. Ei valfri innstillinga krev at alle dei føregåande skiljeteikna er til stades.


Eksempel

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


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

@@@

@@@

@@@

@@@

@@@

@@@

@@@

@@@

@@@


Teknisk informasjon

tip

Denne funksjonen er tilgjengeleg sidan LibreOfficeDev 25.8.


Denne funksjonen er ikkje ein del av standarden Open Document Format for kontorprogram (OpenDocument) Versjon 1.3. del 4: Omrekna formel (OpenFormula)-format. Namnerommet er

COM.MICROSOFT.EXPAND