Function Name: DROP

Excludes a specified number of rows or columns from the start or end of an array. You might find this function useful to remove headers and footers in an Excel report to return only the data.

Syntax:

=DROP(array, rows,[columns])

The DROP function syntax has the following arguments:

  • array    The array from which to drop rows or columns.

  • rows    The number of rows to drop. A negative value drops from the end of the array.

  • columns  The number of columns to exclude. A negative value drops from the end of the array.

Purpose:

  • Data Cleaning: Remove unnecessary rows or columns from a dataset.
  • Data Analysis: Focus on specific parts of your data by excluding irrelevant sections.
  • Dynamic Reporting: Create dynamic reports that automatically adjust based on the data range.

Examples

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. If you need to, you can adjust the column widths to see all the data.

Example 1

Remove the first 2 rows and return the last row of the array.

Data

  

1

2

3

4

5

6

7

8

9

Formulas

  

=DROP(A2:C4,2)

Example 2

Remove the first 2 columns and return the last column of the array.

Data

  

1

2

3

4

5

6

7

8

9

Formulas

  

=DROP(A2:C4,,2)

Example 3

Remove the last 2 rows and return the first row of the array.

Data

  

1

2

3

4

5

6

7

8

9

Formulas

  

=DROP(A2:C4,-2)

Example 4

Remove the first 2 columns and rows and return the remainder of the array.

Data

  

1

2

3

4

5

6

7

8

9

Formulas

  

=DROP(A2:C4,2,2)