HSTACK

Appends ranges horizontally and in sequence to return a larger array.Learn more

Video field
Array

The HSTACK function is used to horizontally stack multiple ranges of data into one range. Here's how you can use it:

Let's say you have two tables in your spreadsheet, one containing sales data for the first quarter of the year and another containing sales data for the second quarter. Each table has the same columns: "Month," "Product," and "Sales."

You want to combine the data from both tables into one table that shows the sales data for the entire year. To do this, you can use the HSTACK function.

Here's how you can use the HSTACK function:

Select an empty cell where you want the combined data to appear (let's say it's cell A1). Type "=HSTACK(A2:C4,F2:H4)" into cell A1 and press enter.

In this example, the first table is located in the range A2:C4, and the second table is located in the range F2:H4. The HSTACK function stacks the second table horizontally after the first table, creating one larger table that shows the sales data for the entire year.

Want even more from Google Sheets?


With Softr, you can turn your spreadsheets into powerful web apps.You can give advanced roles and permissions to each user, build advanced logic and automation flows, customize the design to your needs, and much more.


Softr also offers a growing library of templates for internal tools, client portals, community hubs, and more. The templates come with a Google Sheet or an Airtable base that you can use to store and manage your data easily.


Try Softr now and build your custom web apps in 10 minutes no code required!