Lookup and referenceExcel 2024

HSTACK

Place arrays side by side, extending the result horizontally.

Syntax

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

Worked example

Place the labels next to their matching numeric IDs.

=HSTACK({1;2},{"A";"B"})

Result 1, A / 2, B

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor