In this article:

VSTACK in Google Sheets (Easiest Way to Use It in 2024)

VSTACK in Google Sheets 

VSTACK in Google Sheets is a function designed to vertically stack the content of multiple ranges or arrays into a single column. This function is particularly useful when you need to consolidate data from different areas of a spreadsheet or from different sheets without having to manually copy and paste the information into a single column.

Syntax

The general syntax of the VSTACK function is as follows:

=VSTACK(range1, [range2, ...])

  • range1, range2, ... are the ranges or arrays that you want to combine. You can include as many ranges as you need, and they don't have to be of the same size. VSTACK will stack them in the order they are listed in the function.

Using Google Sheets VSTACK

Follow the steps below to easily use VSTACK in Google Sheets. 

1. Determine Data Ranges to Stack Vertically

Determine which sets of data you wish to stack vertically. In our example, we're using two sets: fruits in A2:A5 and vegetables in B2:B4.

vstack google sheets

2. Choose Output Cell for Combined Data

Choose the cell where you want the combined data to start. This will be where the first value from your stacked data appears.

google sheets vstack

3. Input VSTACK Formula with Specific Data Ranges

Type =VSTACK(A2:A5, B2:B4) into the formula bar, referencing our example data ranges. This formula combines the fruit and vegetable lists.

vstack in google sheets

4. Press Enter to Stack Data Vertically

Press Enter. The data from A2:A5 and B2:B4 will stack vertically, starting from the cell where you entered the formula.

5. Edit Formula for Additional Data or Corrections

If you need to include more data or adjust the ranges, edit the formula directly. Add more ranges by inserting a comma and the additional range.

6. Verify Correct Stacking of Data in Column

Scroll through the column to check that all your data from both ranges are correctly stacked, displaying fruits followed by vegetables.

We hope that you now have a better understanding of what VSTACK is in Google Sheets and how to use Google Sheets VSTACK. If you enjoyed this article, you might also like our article on how to insert video in Google Sheets or our article on how to insert page numbers in Google Sheets.

Automate repetitive tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Trigger
Action
Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
When a new row is added to Google Sheets
On new Google Form submission
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
ADDCALENDAREVENT
Creates a one- or multiple-day calendar event with optional attendees
ADDHUBSPOT
Adds an object to Hubspot
ADDSLACKCHANNEL
Create a Slack channel, and optionally add a topic or members
CALLURL
Makes any HTTP request
CREATEGOOGLEDOC
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
CREATEPDF
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
FETCH
Makes any HTTP request and returns the response
INSERTROWS
Inserts given array below defined values in given worksheet
SENDGMAIL
Sends an email using your Google account
SENDOUTLOOK
Sends an email using your Microsoft Outlook account
SENDSLACK
Sends a Slack message
SENDSMS
Sends an SMS message using your Twilio account
UPDATECELL
Updates cells with given values
UPDATEHUBSPOT
Updates a property of a Hubspot object
Trigger is required
Action is required
Get started