HSTACK

Appends arrays horizontally to create a larger array.

αžšαžΌαž”β€‹αžαŸ†αžŽαžΆαž„β€‹αž…αŸ†αžŽαžΆαŸ†

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


αžœαžΆαž€αŸ’αž™β€‹αžŸαž˜αŸ’αž–αž“αŸ’αž’β€‹β€‹

=HSTACK(Array [; Array_1 [; Array_2;[...]]])

Array: The first array to be returned in a new array.

Array_1; Array_2; ...: (optional) the arrays to append sequentially after the previous array.

αžšαžΌαž”β€‹αžαŸ†αžŽαžΆαž„β€‹αž…αŸ†αžŽαžΆαŸ†

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


αž§αž‘αžΆαž αžšαžŽαŸ

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


And the second array as:

Β 

N

O

15

PPP

QQQ

16

RRR

SSS

17

TTT

UUU

18

VVV

WWW

19

XXX

YYY


The formula {=HSTACK(A1:E3;N15:O19)} returns the array below, with data of array N15:O19 on the right of the data of array A1:E3, and extra cells filled with #N/A error:

AAA

BBB

CCC

DDD

EEE

PPP

QQQ

FFF

Β 

Β 

III

JJJ

RRR

SSS

KKK

LLL

MMM

NNN

OOO

TTT

UUU

#N/A

#N/A

#N/A

#N/A

#N/A

VVV

WWW

#N/A

#N/A

#N/A

#N/A

#N/A

XXX

YYY


Technical information

αžšαžΌαž”β€‹αžαŸ†αžŽαžΆαž„β€‹αž–αŸαžαŸŒαž˜αžΆαž“β€‹αž‡αŸ†αž“αž½αž™

This function is available since LibreOffice 25.8.


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.HSTACK

Please support us!

Please support us!