Lookup & Reference Excel 365 ◉ 19 views Dynamic Array

=VSTACK()

The arrays to append.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for Mac
=VSTACK(array1,[array2],...)
Hover argument names in the table for details.
Output typeArray
Popularity60 / 100
VolatileNo
Dynamic ArrayYes
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =VSTACK() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download VSTACK.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
array Range Required The arrays to append.

▣ Examples

▦ Data
CellValue
A2 A
B2 B
C2 C
D2 AA
E2 BB
F2 CC
A3 D
B3 E
C3 F
D3 DD
E3 EE
F3 FF
A4 1
B4 2
C4 A
D4 B
E4 X
F4 Y
A5 3
B5 4
C5 C
D5 D
A6 5
B6 6
A7 1
B7 2
C7 A
D7 B
E7 C
F7 #VALUE!
A8 3
B8 4
C8 D
D8 E
E8 F
A9 5
B9 6
A10 A
B10 B
C10 C
D10 AA
E10 BB
F10 CC
A11 D
B11 E
C11 F
D11 DD
E11 EE
F11 FF
A12 1
B12 2
C12 A
D12 B
E12 X
F12 Y
A13 3
B13 4
C13 C
D13 D
A14 5
B14 6
A15 1
B15 2
C15 A
D15 B
E15 C
F15 #VALUE!
A16 3
B16 4
C16 D
D16 E
E16 F
A17 5
B17 6
Example 1 =VSTACK(A2:C3,E2:G3)
Example 2 =VSTACK(A2:B4,C2:D3,E2:F2)
Example 3 =VSTACK(A2:B4,C2:E3,F2)

§ Remarks

  • VSTACK returns the array formed by appending each of the array arguments in a row-wise fashion. The resulting array will be the following dimensions:
  • Rows: the combined count of all the rows from each of the array arguments.
  • Columns: The maximum of the column count from each of the array arguments.

✦ Tips

  • VSTACK returns the array formed by appending each of the array arguments in a row-wise fashion. The resulting array will be the following dimensions:
  • Rows: the combined count of all the rows from each of the array arguments.
  • Columns: The maximum of the column count from each of the array arguments.

⚠ Common Errors

#N/A If an array has fewer columns than the maximum width of the selected arrays, Excel returns a #N/A error in the additional columns. Use VSTACK inside the IFERROR function to replace #N/A with the value of your choice.
Fix: Make the number of columns equal or use IFNA

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.