What VSTACK does
VSTACK combines blocks of rows into one array. It reads the arguments in order, putting the second block below the first and continuing down the worksheet. Columns line up by position, so check that each source uses the same field order before combining records.
Practical examples
Append another product record
Enter P01 and 10 in A2:B2, then P02 and 20 in A3:B3. Enter P03 and 30 in D2:E2. Leave A6:B8 clear and enter this in A6:
=VSTACK(A2:B3,D2:E2)FormulaThe expected three-row result is:
P01 10
P02 20
P03 30ExampleThe first argument contributes two rows and the second contributes one. Both inputs have two columns, so the result has two columns too.
See what happens when a source is narrower
Keep A2:B3 from the first example and enter 40 in G2. In A11, with A11:B13 clear, enter:
=VSTACK(A2:B3,G2)FormulaThe expected result is:
P01 10
P02 20
40 #N/AExampleG2 contributes one cell, but the result is two columns wide. VSTACK places 40 in the first column and supplies a padding error in the second. It doesn't infer that 40 is an amount and move it under the other amounts.
Common mistakes and notes
Matching widths don't guarantee matching fields
If one source has Product followed by Amount and another has Amount followed by Product, VSTACK combines them in those positions. Standardize the source order or select columns with CHOOSECOLS first.
Headers, repeated rows, and sorting need separate choices
VSTACK includes the rows you supply, including headings and duplicates. Include a header range once when combining several tables. It doesn't sort the combined result; use SORT if the records need a different order.
Padding errors and source errors have different causes
An input narrower than the widest source gets #N/A in its missing columns. An error already present in a source calculation can also appear in the output. Check which problem you have before replacing errors, since a blanket replacement can conceal a broken calculation.
Leave room for all the rows
The result needs as many rows as the inputs contain in total. Put the formula in an unobstructed worksheet area outside an Excel Table. The multiple-sheet tutorial shows how source Table references can include new records as those Tables grow.