Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
422 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Some other pages relevant to this blog include:
You can also book hourly online consultancy for your time zone with one of our 7 expert trainers!
| Using the TAKE function to pick out rows or columns of data |
|---|
| Excel's TAKE function allows you to extract a number of rows from the top or bottom of a range, or columns from the left or right. This blog shows you the basics of the TAKE function and how to combine it with other Excel array functions to allow your users to pick useful values from a list. |
In this blog
The TAKE function allows you to extract rows from the top or bottom, or columns from the left or right of an Excel range. You can see the syntax of the function below:
TAKE(Array, Rows, [Columns])
Here's a description of the function's parameters:
Parameter | Description |
|---|---|
Array | The range of cells you want to take rows or columns from. |
Rows | The number of rows to take. Use positive numbers to take from the top and negative numbers to take from the bottom. |
Columns | An optional parameter to specify the number of columns to take. Use positive numbers to take from the left and negative numbers to take from the right. |
In the example below we're taking the top 3 rows from the list of films in cells A3:E17.

The formula in G3 takes the top 3 rows from the list.
You can see the results of the formula in the diagram below:

Unsurprisingly, we get the top 3 rows.
You can use negative numbers to get rows from the bottom of a range, as shown below:

This will take the last 3 rows of the list.
Here are the results of the formula:

We return the bottom 3 rows.
By default, you return all the columns from the range you've specified. You can use the third parameter of the TAKE function to specify how many columns to return, as shown below:

We're asking for the top 3 rows and leftmost 2 columns.
Here are the results of the formula:

We return an array of 3 rows and 2 columns.
You can combine the TAKE function with the SORT function to extract rows from a sorted version of a list. In the example below, we're getting the top 3 films sorted in descending order of Run Time (the 3rd column of the list):

Nest the SORT function in the first argument of the TAKE function.
The SORT function in the example above returns a version of the list sorted in descending order of the values in the 3rd column. The TAKE function returns the top 3 rows from this sorted list. Here are the results of the formula:

The top 3 longest films in the list.
It would be useful to allow the end user to control how many rows to return and what order they should be sorted in. In the example below we've set up some cells to allow the user to specify those values:

We've used data validation to create a drop down list in cell H3.
The formula in cell G6 responds to the choices the user makes in cells H2 and H3. Here's the formula which returns the results:

The formula to return the results.
In the example above we're using the XMATCH function to return the number of the column the user has chosen to sort by.
How creative can you be with the TAKE function?
Some other pages relevant to this blog include:
You can also book hourly online consultancy for your time zone with one of our 7 expert trainers!
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2025. All Rights Reserved.