Each subsequent array is appended to the bottom of the previous array.

The result from VSTACK is asinglearray thatspillsonto the worksheet into multiple cells.

VSTACK works equally well forrangeson a worksheet or in-memoryarrayscreated by a formula.

VSTACK basic example

The output from VSTACK is fully dynamic.

If data in the given arrays changes, the result from VSTACK will immediately update.

Use VSTACK to combine rangesverticallyandHSTACKto combine rangeshorizontally.

VSTACK basic example

Basic usage

VSTACK stacks ranges or arrays vertically.

In the example below, the range B3:B5 is combined with the range B8:B9.

Each subsequent range/array is appended to the bottom of the previous range/array.

VSTACK basic example

One option for trapping these errors is to use theIFERROR function.

The result is a “trimmed” range that only includes data from the used portion of the range.

VSTACK basic example

VSTACK basic example

VSTACK array with range

VSTACK with IFERROR

Excel formula: Combine data in multiple worksheets

Excel formula: Count occurrences in entire workbook

Excel formula: Longest winning streak

Excel formula: Sum by year

Excel formula: Maximum change

Excel formula: Income tax bracket calculation

Excel formula: Two-way summary count

Excel formula: Minimum value if

Excel formula: Unique values case-sensitive

Excel formula: Dynamic two-way count

Excel formula: Sum by week

Excel formula: Sum by week number

Excel formula: Tiered discounts based on quantity

Excel formula: Sum if with multiple ranges

Excel formula: COUNTIF with non-contiguous range

Excel HSTACK function

Excel TRIMRANGE function

VSTACK basic example

VSTACK array with range

VSTACK with IFERROR