ID EN
#Dynamic array

DROP

Excel Functions 🇮🇩 Bahasa Indonesia

Hapus sebagian dari array

Syntax

EXCEL
=DROP(array, [rows], [col])

Arguments

Parameter Deskripsi
array The source array or range.
rows [optional] Number of rows to drop.
col [optional] Number of columns to drop.

Return Value

Susunan yang tersisa

Details

Fungsi DROP mengembalikan subset dari array tertentu dengan "menghilangkan" baris dan kolom. Jumlah baris dan kolom yang akan dihapus disediakan oleh argumen baris dan kolom terpisah. Baris dan kolom dapat dihilangkan dari awal atau akhir array tertentu. Ketika angka positif diberikan untuk baris atau kolom, DROP menghapus nilai dari awal atau atas array. Angka negatif menghapus nilai dari akhir atau bawah array. Fungsi DROP membutuhkan tiga argumen: array, baris, dan kolom. Array diperlukan, bersama dengan setidaknya satu nilai untuk baris atau kolom. Array dapat berupa rentang atau array dalam memori dari rumus lain. Baris dan kolom bisa negatif atau positif. Angka positif menghapus nilai dari awal array; angka negatif menghapus nilai dari akhir array. Bot

Contoh

Basic usage

To use DROP, provide an array or range, and numbers for rows and/or columns:

EXCEL
=DROP(array,3) // drop first 3 rows
=DROP(array,,3) // drop first 3 columns
=DROP(array,3,2) // drop first 3 rows and 2 columns
Drop from start

To remove rows or columns from the start of a range or array, provide positive numbers for rows and columns. In the worksheet below, the formula in F3

EXCEL
=DROP(B3:D11,6) // drop first 6 rows
Drop from start

The second formula in F8 is:

EXCEL
=DROP(B3:D11,5,1) // drop first 5 rows and column 1
Drop from end

To remove values from the end of an array, provide negative numbers for rows and columns. In the worksheet below, the formula in cell F3 is:

EXCEL
=DROP(B3:D11,-6)
Drop from end

The formula in F8 is:

EXCEL
=DROP(B3:D11,-5,-1)
DROP vs. TAKE

The DROP and TAKE functions both return a subset of an array, but they work in opposite ways. While the DROP function removes specific rows or columns

EXCEL
=DROP(array,1) // remove first row
=TAKE(array,1) // get first row

See Also

TAKE EXPAND CHOOSEROWS CHOOSECOLS