DROP removes rows or columns from the edge of an array and returns what is left. It is the quickest way to strip a header row, a total row or a label column from a block before you pass it to another function.
The arguments
- array is the block to trim.
- rows is how many rows to remove. A positive number removes them from the top and a negative number from the bottom.
=DROP(A1:C6,1) removes the header row. =DROP(A1:C6,-1) removes the total row at the bottom. - columns is how many columns to remove, from the left if positive and from the right if negative.
=DROP(A1:C6,,1) removes the first column. Leave a comma for the empty rows argument.
Both arguments can be used together. =DROP(A1:C6,1,1) removes the header row and the first column in one step.
Stripping headers and totals
A typical report range has a header at the top and a total at the bottom. If you want to feed only the data into SORT, FILTER or a chart, trim both ends:
=DROP(DROP(A1:C6,1),-1)
The inner DROP removes the header and the outer one removes the total. The range is never shortened in your sheet. Only the result is.
DROP, TAKE and CHOOSEROWS
TAKE keeps a run from an edge, and DROP removes one. Each can do the other's job: DROP(A1:C6,1) on a six-row block is the same as TAKE(A1:C6,-5). Choose whichever says what you mean. "Everything except the header" reads naturally with DROP, and "the top three" with TAKE.
CHOOSEROWS and CHOOSECOLS return specific rows or columns by position. Use them when the rows you want aren't a run from an edge.
When too much is removed
If you drop every row or every column, the result would be empty and DROP returns #CALC!. Dropping more rows than the array has gives the same error.
Spilling
The result spills into the cells below and to the right of the formula. If those aren't empty you get #SPILL!. Use # after the anchor cell to refer to the whole result in another formula, such as =SUM(E2#). See FILTER for more on spill ranges.
DROP needs Microsoft 365, Excel 2024 or later, or Excel for the web. Earlier versions return #NAME?.