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.
The general syntax of the VSTACK function is as follows:
=VSTACK(range1, [range2, ...])
Follow the steps below to easily use VSTACK in Google Sheets.
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.
Choose the cell where you want the combined data to start. This will be where the first value from your stacked data appears.
Type =VSTACK(A2:A5, B2:B4) into the formula bar, referencing our example data ranges. This formula combines the fruit and vegetable lists.
Press Enter. The data from A2:A5 and B2:B4 will stack vertically, starting from the cell where you entered the formula.
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.
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.