ID EN
#Dynamic array

VSTACK

Excel Functions 🇮🇩 Bahasa Indonesia

Gabungkan rentang atau array secara vertikal

Syntax

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

Arguments

Parameter Deskripsi
array1 The first array or range to combine.
array2 [optional] The second array or range to combine.

Return Value

Rentang atau larik gabungan tunggal

Details

Fungsi Excel VSTACK menggabungkan array secara vertikal menjadi satu array. Setiap larik berikutnya ditambahkan ke bagian bawah larik sebelumnya. Hasil dari VSTACK adalah array tunggal yang dipecah ke dalam lembar kerja menjadi beberapa sel. VSTACK berfungsi sama baiknya untuk rentang pada lembar kerja atau array dalam memori yang dibuat oleh rumus. Output dari VSTACK sepenuhnya dinamis. Jika data dalam array tertentu berubah, hasil dari VSTACK akan segera diperbarui. VSTACK berfungsi baik dengan Tabel Excel, seperti terlihat pada lembar kerja di atas, karena Tabel Excel otomatis diperluas ketika data baru ditambahkan. Gunakan VSTACK untuk menggabungkan rentang secara vertikal dan HSTACK untuk menggabungkan rentang secara horizontal. VSTACK menumpuk rentang atau array secara vertikal. Pada contoh di bawah, rentang B3:B5 digabungkan dengan rentang B8:B9. Setiap subseq

Contoh

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 appe

EXCEL
=VSTACK(B3:B5,B8:B9)
Range with array

VSTACK can work interchangeably with both arrays and ranges. In the worksheet below, we combine the array constant {"Color","Qty"} with the range B3:C

EXCEL
=VSTACK({"Color","Qty"},B3:C7)
Arrays of different size

When VSTACK is used with arrays of different size, the smaller array will be expanded to match the size of the larger array. In other words, the small

EXCEL
=VSTACK(B5:C8,B11:B13)
Arrays of different size

By default, the cells used for padding will display the #N/A error. One option for trapping these errors is to use the IFERROR function. The formula i

EXCEL
=IFERROR(VSTACK(B5:C8,B11:B13),"")

See Also

HSTACK TRIMRANGE