HSTACK
Joins arrays side by side into one array.
- Excel: Verified match
- Google Sheets: Verified match
- Returns: Array
Examples
=HSTACK(A1:A3, C1:C3) | A | B | C | |
|---|---|---|---|
| 1 | 10 | alpha | |
| 2 | 20 | beta | |
| 3 | 30 | gamma |
Result 10
Syntax
HSTACK(array…) array…- range required
Related
ARRAY_CONSTRAINTruncates a range to at most the given rows and columns. ARRAYFORMULAEvaluates an expression across a range (this engine already spills, so it is a pass-through for sheets compatibility). ARRAYTOTEXTConverts array to text representation. BYCOLApplies lambda to each column of array. BYROWApplies lambda to each row of array. CHOOSECOLSReturns the specified columns from an array.