HSTACK in Apple Numbers
Short answer: HSTACK places ranges side by side into one array. Syntax:
HSTACK(array, array, …)Explanation
HSTACK places ranges side by side into one array. It is the horizontal sibling of VSTACK.
Syntax
HSTACK(array, array, …)Example
Place A2:A5 and B2:B5 side by side. How many columns does the result have?
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Formula: =COLUMNS(HSTACK(A2:A5,B2:B5))
Result: 2
Frequently asked questions
What does HSTACK do in Apple Numbers?
HSTACK places ranges side by side into one array. It is the horizontal sibling of VSTACK.
What is the syntax of HSTACK?
The syntax is HSTACK(array, array, …).
More in this category
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising