Grab the first or last few rows/columns of a range — or chop them off — with TAKE and DROP. Perfect for “top 5,” “skip the header,” or “last column.”
The example
Take the first 2 rows of a range.
| A | B | |
|---|---|---|
| 1 | Name | Score |
| 2 | Ann | 95 |
| 3 | Bo | 88 |
The formula
Take or drop rows/columns:
How it works
Count rows from either end:
TAKE(array, rows)keeps that many rows from the start; a negative count keeps them from the end.- A third argument does the same for columns:
TAKE(array, , 2)keeps the first two columns. DROPis the opposite — it removes that many rows/columns.DROP(array, 1)skips a header.- Combine them:
TAKE(DROP(data, 1), 5)skips the header, then keeps the first five data rows.
Top-N made easy: sort first, then take — =TAKE(SORT(data, 2, -1), 5) returns the top 5 by the second column. Pre-365, this needed LARGE plus INDEX gymnastics.
Try it: interactive demo
Items (one per line); TAKE first N.
Variations
Last N rows
Negative count:
Skip header
Drop row 1:
Top 5 by column
Sort then take:
Pitfalls & errors
365 only. TAKE/DROP are recent dynamic-array functions.
Rows vs columns argument. The 2nd argument is rows, the 3rd is columns — leave rows blank (, , 2) to act on columns only.
Spill space. Results spill; blocked cells give #SPILL!.
Practice workbook
Frequently asked questions
How do I get the first or last few rows in Excel?
How do I skip a header row with a formula?
How do I get the top 5 rows by a column?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class