FormulaCamp
Completed
← All functions
Dynamic arrays

HSTACK

Arrays placed side by side.

Syntax

HSTACK(array1, array2, …)

Example: =HSTACK(A2:A10,C2:C10)

Available in: Excel 2024, Microsoft 365

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =HSTACK(A2:A4,C2:C4)

Example spreadsheet for HSTACK
ABCDEFG
1RegionProductUnitsPriceResult
2EastPen1202.5East120
3WestPen802.5West80
4EastBook4512East45
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: East

More in Dynamic arrays