The DROP function in Excel removes a specified number of rows or columns from the start or end of an array and returns the remaining data. It is available in Excel for Microsoft 365, Excel for the web, and Excel 2021 and later. To use it, you need a range or array and the number of rows or columns to drop. The syntax is =DROP(array, rows, [columns]), where rows is the number of rows to remove from the start (positive number) or end (negative number), and columns does the same for columns. This guide walks you through using DROP step by step, with examples and troubleshooting.

What You'll Need

  • Excel for Microsoft 365, Excel for the web, or Excel 2021 or later. DROP is not available in older versions like Excel 2019 or 2016.
  • A dataset or array to work with. This can be a range of cells, a table, or an array returned by another function.
  • Basic familiarity with Excel formulas and cell references.

Step-by-Step

  1. Open your workbook and select a cell where you want the result. Choose an empty cell with enough space below and to the right for the output. DROP returns an array that spills into neighboring cells, so make sure the area is clear.
  2. Enter the DROP formula. Type =DROP( and then select the array or range you want to trim. For example, =DROP(A1:C10, 2) will remove the first two rows from the range A1:C10 and return the remaining rows.
  3. Specify the number of rows to drop. After the comma, type a positive number to remove rows from the top, or a negative number to remove rows from the bottom. For example, =DROP(A1:C10, -1) removes the last row. If you don't want to drop any rows, use 0.
  4. Optionally specify columns to drop. Add a third argument to remove columns. Positive numbers remove from the left, negative from the right. For example, =DROP(A1:C10, 1, 2) removes the first row and the first two columns.
  5. Close the parenthesis and press Enter. The result will spill into the cells below and to the right. If you see a #SPILL! error, make sure the spill range is empty.
  6. Adjust the formula as needed. You can use cell references for the row and column counts, or nest DROP inside other functions like SORT or FILTER to create dynamic reports.

Common Mistakes

  • Using DROP in an unsupported Excel version. If you have Excel 2019 or earlier, DROP will return a #NAME? error. Check your version under File > Account.
  • Forgetting that DROP returns an array. If you only need a single value, wrap DROP in an INDEX or use a different approach. Otherwise, ensure there is enough empty space for the spill.
  • Mixing up positive and negative numbers. Positive rows drop from the top, negative from the bottom. The same applies to columns: positive from the left, negative from the right.
  • Dropping more rows or columns than exist. If you try to drop more than the array contains, DROP returns a #CALC! error. Double-check your counts.
  • Not accounting for headers. If your data has headers, you may want to drop 0 rows and keep the header, or drop 1 row to remove it. Plan accordingly.

Tips

  • Use DROP with SORT to remove the header row after sorting: =DROP(SORT(A1:C10), 1).
  • Combine DROP with TAKE to get a specific slice of data. For example, =TAKE(DROP(A1:C10, 1), 5) drops the first row and then takes the next five rows.
  • If you want to remove rows based on a condition, use FILTER instead of DROP. DROP is for fixed counts.
  • You can use DROP on a table by referencing the table name, e.g., =DROP(Table1, 1).
  • Remember that DROP is not volatile; it recalculates only when the source data or arguments change.

Troubleshooting

If DROP does not work as expected, check these common issues:

  • #NAME? error: Your Excel version does not support DROP. Upgrade to Microsoft 365 or Excel 2021.
  • #SPILL! error: The spill range is blocked. Clear the cells below and to the right of the formula cell.
  • #CALC! error: You are trying to drop more rows or columns than the array has, or the resulting array is empty. Reduce the drop count.
  • #VALUE! error: The rows or columns argument is not a number. Ensure you use numeric values or references to numeric cells.
  • Formula returns unexpected results: Verify the array reference and the signs of your arguments. Use the Evaluate Formula tool (Formulas > Evaluate Formula) to step through.

If you still have trouble, try simplifying the formula or testing with a small range. Also, ensure your workbook is saved in a format that supports dynamic arrays (e.g., .xlsx).

Frequently Asked Questions

What versions of Excel support the DROP function?

DROP is available in Excel for Microsoft 365, Excel for the web, Excel 2021, and Excel for iPad/iPhone. It is not in Excel 2019 or earlier.

Can I use DROP with a table?

Yes, you can reference a table by name, like =DROP(Table1, 1). The result will be an array without the first row.

How do I drop both rows and columns?

Use the third argument: =DROP(array, rows, columns). For example, =DROP(A1:C10, 2, 1) drops the first two rows and the first column.

What happens if I drop all rows?

If you drop all rows, DROP returns a #CALC! error because the resulting array is empty.

Can I use DROP with other dynamic array functions?

Yes, DROP can be nested with functions like SORT, FILTER, TAKE, and CHOOSECOLS to build powerful formulas.

Is DROP available in Excel for Mac?

Yes, DROP is available in Excel for Microsoft 365 for Mac and Excel 2021 for Mac.