SheetRocks
Documentation/Formulas/DROP

DROP

Drops the first N rows and optionally first N columns from an array. Returns an error if the result would be empty.

Syntax

DROP(array, n_rows, [n_columns])

Arguments

Argument Description Required
array The array from which to drop elements. Required
n_rows The number of rows to drop from the beginning. Required
n_columns The number of columns to drop from the beginning. If not specified, all columns are included. Optional

Examples

Drop first row from array

=DROP(A1:C3, 1)
Result ⇒ Array: [["John","25","85"], ["Jane","30","92"]]
A B C
1 Name Age Score
2 John 25 85
3 Jane 30 92

Drop first row and first column

=DROP(A1:C3, 1, 1)
Result ⇒ Array: [["25","85"], ["30","92"]]
A B C
1 Name Age Score
2 John 25 85
3 Jane 30 92

Drop first 2 columns from single row

=DROP(A1:D1, 0, 2)
Result ⇒ Array: [["Cherry","Date"]]
A B C D
1 Apple Banana Cherry Date

Related Functions

Other Data functions:


← Back to Formula Reference