Confident CellsExcel practice Start free

DROP, TAKE and CHOOSEROWS: picking rows from a table

Updated 26 November 2026 · 4 min read

=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 wantFormulaWhat 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:

ABCDE
1ItemSalesWithout the total
2Pens£120.00Pens£120.00
3Folders£85.00Folders£85.00
4Labels£40.00Labels£40.00
5Paper£210.00Paper£210.00
6Total£455.00
D2 holds =DROP(A2:B6,-1). The Total row is left out, so 4 rows spill.

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)
ABCDEFG
1DateItemSalesLatest 3
202/11/2026Pens£120.0016/11/2026Staples£95.00
305/11/2026Folders£85.0019/11/2026Ink£160.00
409/11/2026Labels£40.0023/11/2026Card£70.00
512/11/2026Paper£210.00
616/11/2026Staples£95.00
719/11/2026Ink£160.00
823/11/2026Card£70.00
E2 holds =TAKE(A2:C8,-3): the last 3 rows of the log, from 16 to 23 November.

=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)
ABCDEF
1DateItemSalesTop 3
202/11/2026Pens£120.00Paper£210.00
305/11/2026Folders£85.00Ink£160.00
409/11/2026Labels£40.00Pens£120.00
512/11/2026Paper£210.00
616/11/2026Staples£95.00
719/11/2026Ink£160.00
823/11/2026Card£70.00
E2 holds =TAKE(SORT(B2:C8,2,-1),3): Paper, Ink and Pens.

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)
ABCDEFG
1DateItemSalesFirst and last
202/11/2026Pens£120.0002/11/2026Pens£120.00
305/11/2026Folders£85.0023/11/2026Card£70.00
409/11/2026Labels£40.00
512/11/2026Paper£210.00
616/11/2026Staples£95.00
719/11/2026Ink£160.00
823/11/2026Card£70.00
E2 holds =CHOOSEROWS(A2:C8,1,-1): Pens on 2 November and Card on 23 November.

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)
ABCDEF
1DateItemSalesItemSales
202/11/2026Pens£120.00Pens£120.00
305/11/2026Folders£85.00Folders£85.00
409/11/2026Labels£40.00Labels£40.00
512/11/2026Paper£210.00Paper£210.00
616/11/2026Staples£95.00Staples£95.00
719/11/2026Ink£160.00Ink£160.00
823/11/2026Card£70.00Card£70.00
E2 holds =CHOOSECOLS(A2:C8,2,3): columns 2 and 3 of the table.

=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

Your turn

This export ends with a Total row. In E2, list every row from A2:C7 except the Total, using DROP.

ABCDEFG
1EmployeeTeamHoursWithout the total
2AmiraSales32
3BenAdmin18
4CaraSales40
5DevStores25
6EwaAdmin37
7Total152
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.