February 18, 2026

Food with Mood

Food with Mood

Learn how to Use the DROP Operate in Microsoft Excel


One of the vital underused lookup and reference features in Microsoft Excel is the DROP perform. This highly effective but easy perform helps you to take away a specified variety of rows or columns from the beginning or finish of an array with out altering the unique dataset.

Microsoft Excel’s DROP perform is just accessible to these utilizing Excel for Microsoft 365, Excel for the web, or the Excel cell and pill apps.

OS

Home windows, macOS, iPhone, iPad, Android

Free trial

1 month

Microsoft 365 consists of entry to Workplace apps like Phrase, Excel, and PowerPoint on as much as 5 units, 1 TB of OneDrive storage, and extra.


The DROP Syntax

Excel’s DROP perform has three arguments:

=DROP(a,b,c)

the place

  • a is the array from which you need to drop a sure variety of rows or columns,
  • b is the variety of rows to drop from the array, and
  • c is the variety of columns to drop from the array.

As you employ this perform, keep in mind the next standards and traits:

  • Argument a is obligatory, and at the least one among arguments b and c have to be acknowledged to keep away from an error message.
  • For arguments b and c, a optimistic quantity drops rows from the highest or columns from the left, and a detrimental quantity drops rows from the underside or columns from the underside.
  • If you happen to enter a quantity for arguments b or c that exceeds the variety of rows or columns within the array, you will see the CALC! error.
  • DROP is a dynamic array perform. In different phrases, the end result extends to cells adjoining to the place the method is entered—a habits generally known as spilling. Since dynamic arrays cannot spill into table columns, the DROP method have to be entered into a daily cell.

Examples: The DROP Operate in Use

In all of the examples beneath, I am going to use the DROP perform to control copies of the next Excel desk, which comprises college students’ IDs in column A, their genders in column B, their lessons in column C, and their check scores in column D.

An Excel table with student IDs in column A, genders in column B, classes in column C, and scores in column D.

To observe alongside as you learn this information, obtain a free copy of the Excel workbook. After you click on the hyperlink, you will discover the obtain button within the top-right nook of your display screen, and once you open the file, you’ll be able to entry the tables utilized in every train on a separate worksheet tab. Extracting information from Excel tables is usually simpler than extracting information from common ranges, as a result of the structured references robotically choose up any new rows added to the dataset, so all of the examples use this format.

Train 1: Drop Rows From the Prime of an Array

We could say you need to create a brand new dataset comprising all the scholars not within the high 10. First, reorder the scholars in response to their scores by clicking the filter button within the column header, and choosing “Kind Largest To Smallest.”

The filter button of an Excel table column is clicked, and Sort Largest To Smallest is selected.

One other technique to kind the info is to nest the SORT perform inside the DROP method. Nonetheless, for now, to make issues simpler to observe, I am going to persist with sorting utilizing the desk’s filter button. I am going to present you the best way to use the SORT perform quickly.

One technique to duplicate the dataset with the highest 10 rows eliminated could be to hard-code argument b:

=DROP(T_Stud,10)

the place T_Stud is the desk containing the array from which you need to drop some rows, and 10 is the variety of rows to drop. As a result of this can be a optimistic quantity, the rows are dropped from the highest of the dataset. Argument c is omitted since you need all of the columns to be transferred to the brand new array.

The DROP function used in Excel to extract table data without the top 10 rows.

One of many issues with hard-coding values in Excel formulas is that it makes them rigid. That’s to say, if, as an alternative, you needed to indicate all the scholars not within the high 15, you would wish to edit the method.

As a substitute, you’ll be able to kind the worth in a cell and reference this within the method:

=DROP(T_Stud,H1)
The DROP function used in Excel to extract table data without the top 10 rows, with a cell reference used to determine this argument.

Now, if it’s good to change the variety of rows faraway from the end result, you’ll be able to merely kind a brand new worth into cell H1.

The DROP function used in Excel to extract table data without the top 15 rows.

Train 2: Drop Rows From the Backside of an Array

The precept for dropping rows from the underside of the array is similar as dropping rows from the highest, apart from one tiny tweak to the method. Particularly, argument b must be a detrimental quantity.

This time, as an instance you need to present all college students not within the backside 10. To do that, after sorting the info within the desk referred to as T_Stud2 into descending order by the Rating column, and typing 10 into cell H1, kind:

=DROP(T_Stud2,-H1)

the place the minus signal earlier than the cell reference turns the quantity detrimental.

The DROP function used in Excel to extract table data without the bottom 10 rows.

The minus signal might be typed into the method, the referenced cell, or a separate cell and concatenated.

Train 3: Drop Columns From the Left of an Array

Now, think about you are making a report of scholar scores, however you need to anonymize the info. In different phrases, you need to duplicate the dataset in T_Stud3, however with the primary column eliminated. To do that, kind:

=DROP(T_Stud3,,1)
The DROP function used in Excel to extract table data without the first column.

Discover how the method skips over argument b and solely specifies a quantity for argument c.

Train 4: Drop Columns From the Proper of an Array

This time, your goal is to provide an inventory of scholars, their gender, and their class from desk T_Stud4, with out together with their rating. To attain this, kind:

=DROP(T_Stud4,,-1)
The DROP function used in Excel to extract table data without the last column.

Bear in mind, the minus signal tells Excel to drop columns from the precise of the info. Which means that for those who add another column of information to the precise of the Rating column, the brand new column could be dropped, and the end result would return 4 columns total.

Train 5: Drop Rows and Columns on the Identical Time

Up to now, we have dropped both rows or columns. Nonetheless, you should utilize all of the perform’s arguments on the similar time to drop each.

To illustrate you need to produce an inventory of scholar IDs and their gender from desk T_Stud5, however solely these not within the backside 10. After sorting the Rating column into descending order and typing 10 into cell H1, kind:

=DROP(T_Stud5,-H1,-2)

the place -H1 turns the worth in cell H1 (10) detrimental to take away the underside 10 rows, and -2 removes the 2 rightmost columns.

The DROP function used in Excel to extract table data without the bottom 10 rows or the two rightmost columns.

Utilizing DROP With Different Features

Whereas the DROP perform is beneficial by itself, its true worth and energy develop into obvious when mixed with different dynamic array features.

Train 6: Kind and Drop Information

In all of the examples above, the order of the DROP end result has been decided by sorting the supply information. Whereas that works effectively, you will run into points if it’s good to kind the supply information by one other column for different analytical functions.

To ensure the results of the DROP method is at all times sorted as desired, nest the SORT function.

On this instance, the place the desk is known as T_Stud6, suppose you need to produce a brand new, anonymized dataset of scholars not within the backside 10, sorted by rating. To do that, kind:

=DROP(SORT(T_Stud6,4,-1),-H1,1)

the place

  • 4 tells Excel to kind the info by the fourth column (Rating),
  • -1 tells Excel to kind this column in descending order (largest to smallest),
  • -H1 tells Excel to drop the underside 10 rows, since cell H1 comprises the quantity 10 and the method comprises a minus signal, and
  • 1 tells Excel to drop the primary column.
The DROP function used in Excel to extract table data without the bottom 10 rows, with the SORT function nested to reorder the result.

Now, even for those who re-sort the supply information by the Class column, the end result stays sorted by the Rating column.

The result of the DROP function in Excel is sorted by score, even though the source data is sorted by the Class column.

Train 7: Mix and Drop Information

On this instance, every class has its personal desk: T_Blue for the blue class, T_Green for the inexperienced class, and T_Yellow for the yellow class.

Three tables in an Excel worksheet, each detailing students' genders and scores.

Fairly than analyzing these tables individually, you need to extract and group the lowest-scoring college students throughout all lessons. Particularly, you need the end result to show all college students not within the high 10, whereas additionally sorting the info. That is the place the VSTACK function turns out to be useful.

Kind:

=DROP(SORT(VSTACK(T_Blue,T_Green,T_Yellow),3,-1),G1)

the place

  • The VSTACK perform appends the three tables, one on high of the opposite,
  • 3 tells Excel to kind the end result by the third column (Rating),
  • -1 tells Excel to kind this column in descending order, and
  • G1 tells Excel to drop the primary 10 rows within the appended information, since cell G1 comprises a optimistic quantity 10.
VSTACK and SORT nested in DROP in Excel to return a sorted list of students not in the top 10.

You may observe the identical steps to drop information from horizontally stacked information by nesting the HSTACK perform relatively than the VSTACK perform.

Train 8: Drop Rows or Columns From Hand-Picked Information

You already know that the DROP perform helps you to take away rows or columns from the sting of an array. However what if you wish to take away rows or columns from each edges, after which clip the end result additional?

Particularly, on this case, you need to listing the lessons of the scholars not within the backside 10 of desk T_Stud8, and type the end result by the Rating column, so that you could visualize which class is performing the very best.

An Excel table containing student details, and an area of the same worksheet where certain classes are to be extracted.

On this case, you should utilize the CHOOSECOLS function. Kind:

=DROP(CHOOSECOLS(SORT(T_Stud8,4,-1),3),-I1)

the place

  • The SORT a part of the method types the supply information by the fourth column (4) in descending order (-1),
  • The CHOOSECOLS a part of the method extracts the third column (3) from the dataset, and
  • The DROP a part of the method excludes the underside ten rows, since cell I1 comprises the quantity 10, and the cell reference is preceded by a minus image.
The DROP, CHOOSECOLS, and SORT functions used in Excel to extract specific data from a table.

When nesting CHOOSECOLS in a DROP method, you’ll be able to solely specify the variety of rows to drop. Equally, when nesting CHOOSEROWS, you’ll be able to solely specify the variety of columns to drop. That is to keep away from the 2 features offering Excel with conflicting data.


The place Excel’s DROP perform helps you to take away rows or columns from the unique dataset within the end result, the TAKE function does the precise reverse—it helps you to preserve particular numbers of rows or columns within the end result. They each observe the identical syntax and can be found in the identical variations of Excel. So, when you learn to use one, it is simple to adapt to the opposite.