VSTACK appends one range to another with a formula. Give it two or more ranges and it returns a single array with the first on top and each later one below. It replaces the copy-and-paste routine you used to use to combine monthly sheets or regional lists, and it stays up to date.
The arguments
Only one argument is required, and you can add many more. Each array can be a range, an array constant such as {"Product","Units"}, or the result of another formula. =VSTACK(A2:B3,D2:E4) returns the two rows of the first block followed by the three rows of the second: five rows in all.
When the widths differ
The result is as wide as the widest array. A narrower array is padded on the right with #N/A. If the first block has two columns and the second has three, the first block's rows get a #N/A in column three. To show blanks instead, wrap the formula in IFNA: =IFNA(VSTACK(A2:B3,G2:I3),"").
Adding a header
Most real use includes a header row. Add one as an array constant at the top: =VSTACK({"Product","Units"},A2:B3,D2:E4). Or keep the header from the first range by including it: =VSTACK(A1:B3,D2:E4).
Stacking, then working with the result
VSTACK is often the first step of a bigger formula. A single formula can consolidate several blocks and then filter, sort or total them:
=SORT(VSTACK(A2:B3,D2:E4),2,-1) returns the combined list ranked by its second column.=SUM(VSTACK(B2:B3,E2:E4)) totals non-adjacent ranges.=UNIQUE(VSTACK(A2:A3,D2:D4)) lists every product that appears in either block.
For ranges on different sheets, VSTACK combines them in the same way. Use VSTACK(Jan!A2:B20,Feb!A2:B20) in Excel. The exercises here use a single sheet.
VSTACK, HSTACK and TOCOL
HSTACK joins arrays side by side, which is the same idea along the other axis. TOCOL turns a whole block into one column. VSTACK keeps the shape of each block, TOCOL flattens everything.
Notes
Blank cells inside a range come back as 0, not as blanks. The result is a spilled array: if the cells it needs aren't empty you get #SPILL!. The # operator after the anchor cell refers to the whole result, as in =ROWS(G2#). See FILTER for details.
VSTACK needs Microsoft 365, Excel 2024 or later, or Excel for the web.