The HSTACK function is one of the lookup and reference functions. It is used to horizontally stack arrays into one array.
HSTACK (array1, [array2], ...)
The HSTACK function has the following arguments:
Please note that this is an array formula. To learn more, please read the Insert array formulas article.
How to apply the HSTACK function.
The figure below displays the result returned by the HSTACK function.