logo
excelfunctions.org
bookmarks

HSTACK

Appends arrays horizontally and in sequence to return a larger array.

Lookup & ReferenceDynamic Arrays & LAMBDALookup & Matching EssentialsModern Excel Functions

What it does

Combines arrays horizontally (side-by-side).

Syntax

HSTACK(array1, [array2], ...)

Arguments

  • array1(array) β€” First array.
  • array2(array) β€” Second array.

Examples

Stack Horizontally

Combine A and B.

FORMULA
=HSTACK(A1:A2, B1:B2)
RESULT
[1, 3; 2, 4]
SAMPLE DATA
AB
1AB
213
324