# HSTACK

## Content

The function appends arrays horizontally and in sequence to return a larger array.

## Syntax

`=HSTACK(array1,[array2],...)`

## Arguments

This function has the following arguments:

| Argument | Description |
| -------- | ----------- |
| *array* | The arrays to append. |

## Data Type

The function returns an array, <span>the type of each value in the array depends on the parameter.</span>

## Remarks

The function returns the array formed by appending each of the array arguments in a column-wise fashion. The resulting array will as follows:

* **Rows**: The maximum of the row count from each of the array arguments.
* **Columns**: The combined count of all the columns from each of the array arguments.

## Examples

![hstack-snapshot.png](https://gcdocumentsitekrblob.blob.core.windows.net/document-site-files/images/8d606653-16a0-474d-b9dc-e2b4d01c2446/hstack-snapshot.b95441.png)