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 referenceExcel HSTACK Formula – The Ultimate Shortcut!
Practice HSTACK
Place the labels next to their matching numeric IDs.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 |
Show example formula
=HSTACK(B2:B3,B4:B5) Lesson quiz
Answer three questions to see your level in this lesson.
