DROP, TAKE and CHOOSEROWS: picking rows from a table
=DROP(A2:C12,-1) gives the table without its last row, such as a Total row, and =TAKE(A2:C12,3) gives just the first 3 rows. DROP, TAKE, CHOOSEROWS and CHOOSECOLS are in Excel for Microsoft 365 (Windows and Mac), Excel 2024 and Excel for the web; Excel 2021 and older don't have them. =CHOOSEROWS(A2:C12,1,-1) gives the first and the last row. All of them spill, and Google Sheets has CHOOSEROWS and CHOOSECOLS too.
The formulas at a glance
| You want | Formula | What you get |
|---|---|---|
| Leave off a Total row | =DROP(A2:B6,-1) | Every row except the last |
| Leave off the first column | =DROP(A2:C8,0,1) | Every row, without column A |
| The latest few entries | =TAKE(A2:C8,-3) | The last 3 rows |
| A top 3 | =TAKE(SORT(B2:C8,2,-1),3) | The 3 biggest sales |
| Rows by number | =CHOOSEROWS(A2:C8,1,-1) | The first and last rows |
| Columns in a new order | =CHOOSECOLS(A2:C8,2,3) | Item and sales, without the date |
A plain number counts from the top (or the left), and a minus number counts from the bottom (or the right). Each formula is worked through below.
DROP: leave rows out
An export ends with a Total row that gets in the way. The four items sell £120, £85, £40 and £210, and the Total row says £455. A positive number drops rows from the top, and a minus number drops them from the bottom:
DROP(A2:B6,1): everything except the first row.DROP(A2:B6,-1): everything except the last row.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Sales | Without the total | ||
| 2 | Pens | £120.00 | Pens | £120.00 | |
| 3 | Folders | £85.00 | Folders | £85.00 | |
| 4 | Labels | £40.00 | Labels | £40.00 | |
| 5 | Paper | £210.00 | Paper | £210.00 | |
| 6 | Total | £455.00 |
A third part drops columns: =DROP(A2:C8,0,1) keeps every row but leaves out the first column. The 0 means "no rows".
DROP is handy in front of a stacked list too: to join two exports that each end in a Total, drop it from each, as in =VSTACK(DROP(A2:B6,-1),DROP(D2:E6,-1)) (see VSTACK and HSTACK).
TAKE: keep the first or last few
TAKE works the other way round: it keeps rows. A sales log adds a row each time something's sold, so the latest entries are at the bottom. The last 3 are Staples (£95), Ink (£160) and Card (£70):
=TAKE(A2:C8,-3)
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Date | Item | Sales | Latest 3 | |||
| 2 | 02/11/2026 | Pens | £120.00 | 16/11/2026 | Staples | £95.00 | |
| 3 | 05/11/2026 | Folders | £85.00 | 19/11/2026 | Ink | £160.00 | |
| 4 | 09/11/2026 | Labels | £40.00 | 23/11/2026 | Card | £70.00 | |
| 5 | 12/11/2026 | Paper | £210.00 | ||||
| 6 | 16/11/2026 | Staples | £95.00 | ||||
| 7 | 19/11/2026 | Ink | £160.00 | ||||
| 8 | 23/11/2026 | Card | £70.00 |
=TAKE(A2:C8,2) gives the first 2 rows instead. Like DROP, a third part works on columns: =TAKE(A2:C8,,2) keeps the first 2 columns of every row.
A top 3
Put SORT inside TAKE: SORT puts the biggest sales first, and TAKE keeps 3 of them. Sorted by sales, the top three are Paper (£210), Ink (£160) and Pens (£120):
=TAKE(SORT(B2:C8,2,-1),3)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Date | Item | Sales | Top 3 | ||
| 2 | 02/11/2026 | Pens | £120.00 | Paper | £210.00 | |
| 3 | 05/11/2026 | Folders | £85.00 | Ink | £160.00 | |
| 4 | 09/11/2026 | Labels | £40.00 | Pens | £120.00 | |
| 5 | 12/11/2026 | Paper | £210.00 | |||
| 6 | 16/11/2026 | Staples | £95.00 | |||
| 7 | 19/11/2026 | Ink | £160.00 | |||
| 8 | 23/11/2026 | Card | £70.00 |
The sort is explained in SORT and SORTBY. For a top 5 in older Excel, with LARGE and INDEX, see RANK and a top 5.
CHOOSEROWS: pick the rows you want
Give CHOOSEROWS the table and then the row numbers, counting from the top of the table. A minus number counts from the bottom, so -1 is the last row. For the first and last sale in the log:
=CHOOSEROWS(A2:C8,1,-1)
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Date | Item | Sales | First and last | |||
| 2 | 02/11/2026 | Pens | £120.00 | 02/11/2026 | Pens | £120.00 | |
| 3 | 05/11/2026 | Folders | £85.00 | 23/11/2026 | Card | £70.00 | |
| 4 | 09/11/2026 | Labels | £40.00 | ||||
| 5 | 12/11/2026 | Paper | £210.00 | ||||
| 6 | 16/11/2026 | Staples | £95.00 | ||||
| 7 | 19/11/2026 | Ink | £160.00 | ||||
| 8 | 23/11/2026 | Card | £70.00 |
The rows come out in the order you list them, so =CHOOSEROWS(A2:C8,3,1) gives row 3, then row 1. A list in curly brackets works too: =CHOOSEROWS(A2:C8,{1,3,5}).
CHOOSECOLS: pick columns, in any order
CHOOSECOLS does the same with columns. To show the item and sales without the date:
=CHOOSECOLS(A2:C8,2,3)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Date | Item | Sales | Item | Sales | |
| 2 | 02/11/2026 | Pens | £120.00 | Pens | £120.00 | |
| 3 | 05/11/2026 | Folders | £85.00 | Folders | £85.00 | |
| 4 | 09/11/2026 | Labels | £40.00 | Labels | £40.00 | |
| 5 | 12/11/2026 | Paper | £210.00 | Paper | £210.00 | |
| 6 | 16/11/2026 | Staples | £95.00 | Staples | £95.00 | |
| 7 | 19/11/2026 | Ink | £160.00 | Ink | £160.00 | |
| 8 | 23/11/2026 | Card | £70.00 | Card | £70.00 |
=CHOOSECOLS(A2:C8,3,1) gives the sales, then the date: the columns come out in the order you list them. That's a quick way to reorder an export for a report. To join columns from different places, see HSTACK in VSTACK and HSTACK.
The last value in a column
To get the newest entry in a column that keeps growing, give TAKE a range with room to spare and use -1. Empty cells at the end would come back as 0, so turn the column into a list without blanks first with TOCOL:
=TAKE(TOCOL(C2:C500,1),-1)
On the log above that gives £70, the Card sale. Add a sale in row 9 and the answer moves to it. If you'd like the steps named, LET can hold the list: =LET(sales,TOCOL(C2:C500,1),TAKE(sales,-1)).
Common mistakes
Counting rows from the top of the sheet
The numbers count from the top of the range you gave. In CHOOSEROWS(A2:B6,1), row 1 of the range is row 2 on the sheet.
Dropping from the wrong end
=DROP(A2:B6,1) leaves off the first row, Pens. A Total row is at the bottom, so it needs a minus number: -1.
#CALC! from DROP
You dropped every row, so nothing is left. Check the number, and check the range is the size you think.
#VALUE! from CHOOSEROWS
A row number is bigger than the table. A table of 7 rows has no row 9.
#NAME? in older Excel
These functions aren't in Excel 2021 or older. INDEX gets one row there: =INDEX(A2:C8,7,0) gives the 7th row. In Excel for Mac or Windows, the Data tab's filter can also hide a Total row.
Try it now
This export ends with a Total row. In E2, list every row from A2:C7 except the Total, using DROP.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Employee | Team | Hours | Without the total | |||
| 2 | Amira | Sales | 32 | ||||
| 3 | Ben | Admin | 18 | ||||
| 4 | Cara | Sales | 40 | ||||
| 5 | Dev | Stores | 25 | ||||
| 6 | Ewa | Admin | 37 | ||||
| 7 | Total | 152 | |||||
| 8 |
Open this in Try a formula: the same sheet with the answer filled in, to change or share by link.
Part of Excel data analysis practice: every lesson on the topic, with a project in Excel.
Where it works
DROP, TAKE, CHOOSEROWS and CHOOSECOLS are in Excel for Microsoft 365 on Windows and Mac, Excel 2024 and Excel for the web. Excel 2021 and older show #NAME?. Google Sheets has CHOOSEROWS and CHOOSECOLS.
Questions
How do I remove the Total row from a range with a formula?
Use DROP with a minus number: =DROP(A2:C12,-1) gives every row of A2:C12 except the last, so a Total row at the bottom is left out. A positive number drops rows from the top instead, such as a heading or a title row. The answer spills and updates, so it's a tidy way to feed an export into SORT, FILTER or a chart.
How do I get the last 5 rows of a list in Excel?
Use TAKE with a minus number: =TAKE(A2:C100,-5) keeps the last 5 rows of A2:C100. Make sure the range ends at the last row of data, because empty rows at the bottom count too. For a list that keeps growing, use a whole Excel table, whose range grows by itself, or FILTER out the blank rows first.
What is the difference between DROP and TAKE?
They're opposites. DROP says how many rows to leave out, and TAKE says how many to keep. On a table of 10 rows, =DROP(A2:C11,7) and =TAKE(A2:C11,-3) both give the last 3 rows. Use whichever matches how you think about it: "without the total" is DROP, "the top 3" is TAKE.
Can CHOOSEROWS pick rows that match a condition?
No: CHOOSEROWS picks rows by their number. To keep the rows that match a condition, such as every sale over £100, use FILTER: =FILTER(A2:C8,C2:C8>100). The two work well together, though. =CHOOSEROWS(FILTER(A2:C8,C2:C8>100),1) gives the first sale over £100, and -1 in place of the 1 gives the last one. FILTER is explained in our UNIQUE and FILTER guide.