=HSTACK(array1[,array2,...])
=HSTACK({1,2,3},{4,5,6})
The HSTACK function can be used to combine two arrays of data. For example, this formula will combine the array constants 1, 2, 3 with the array constant 4, 5, 6 and return the result 1,2,3,4,5,6.
=HSTACK(B2:B4,D2:D4)
The HSTACK function can also be used to combine two ranges of cells, and will combine the range B2:B4 with the range D2:D4.
=HSTACK(A2:A4,C2:C4)
The HSTACK function can be used to combine two columns of data, and will combine the range A2:A4 with the range C2:C4.
The HSTACK function is used to combine multiple arrays horizontally into one larger array. It appends each of the arguments to the array to create the larger array.