Contact

VSTACK Function in Microsoft Excel: Syntax, Examples & Compatibility

Array Intermediate Microsoft Excel

Learn how to append rows from two tables into one expanding result in Microsoft Excel. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: append rows from two tables into one expanding result in Microsoft Excel. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.

Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Microsoft Excel test results. A guide being published here does not certify every software release or file-import scenario.

Availability and version history

  • Introduced: Preview announced March 16, 2022: Windows Beta 2203 (15104.20004), Mac 16.60 (22030400). Web and Microsoft 365 Current Channel deployment reported September 29, 2022. Release history.
  • Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac.
  • Checked: October 14, 2026; official VSTACK reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and arguments

=VSTACK(array1, [array2], ...)

Supply one or more arrays; additional arrays are appended below the preceding ones. Equal widths produce an unpadded rectangle, but unequal widths are also accepted with padding.

Best use case: Append rows from two tables into one expanding result.

Set up the example sheet

Enter A2=Pen, B2=12, A3=Pad, B3=5, A5=Box, and B5=7. Leave a three-row by two-column output area empty for each of the two examples below.

Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.

Worked example 1: VSTACK with known input

=VSTACK(A2:B3,A5:B5)

Expected output: three rows: Pen,12 / Pad,5 / Box,7.

Two records from the first block are followed by the record from the second block.

Worked example 2: a second VSTACK case

=VSTACK(A5:B5,A2:B3)

Expected output: three rows: Box,7 / Pen,12 / Pad,5.

The order of arguments sets the row order of the result.

Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.

Unequal-width example

Keep the sample inputs and enter this formula in a separate clear region:

=VSTACK(A2:B3,A5)

Expected output is three rows by two columns:

Pen  12
Pad   5
Box  #N/A

The final argument contains only the Box label, so its second output column receives Excel’s documented #N/A padding. It does not pull the adjacent B5 value automatically. To include that value, pass A5:B5, as in the first example.

An IFERROR wrapper can replace padding, but it also masks genuine errors in the inputs. Decide whether to preserve an error-quality check. The official VSTACK help supplies the dimensions and padding rule; the displayed values are independently calculated.

Practical advice and troubleshooting

When this formula helps: To combine data from several monthly tables, standardize the column order before stacking them.

Important edge case: Excel pads shorter-width input arrays with #N/A; it does not align records by column names. The output height is the sum of all input heights, and the width is the largest input width.

If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. An error that looks like a missing function may reflect a software version rather than incorrect data.

Compatibility and version considerations

Google Sheets and modern Excel support the same broad task, but older spreadsheet versions may require manual append or Power Query.

VSTACK is included in Microsoft 365/Excel 2024 and current Google Sheets; it is not broadly backward-compatible.

Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.

Editorial verification: Vendor catalogue referenced as of 2026-10-12. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.