Note: The other languages of the website are Google-translated. Back to English

Excel TAKE function

The TAKE function returns a specified number of contiguous rows or columns from the start or end of a given array.

Note: This function is only available in Excel for Microsoft 365 on the Insider channel.

Syntax

=TAKE(array, rows, [columns])

Arguments

Array (required): The array you want to take contiguous rows or columns from.
Rows (optional): The second and more ranges or arrays to append.
-- A positive value: Takes the number of rows from the start of the array;
-- A negative value: Takes the number of rows from the end of the array.
Columns (optional): The specified number of columns you want to take.
-- A positive value: Takes the number of columns from the start of the array;
-- A negative value: Takes the number of columns from the end of the array.

Remarks

1) Although both the arguments Rows and Columns are optional, at least one must be provided in the function.
2) The #CALC! error occurs when any of the following conditions is meet:
-- The number provided to the rows argument is 0;
Or
-- The number provided to the columns argument is 0.
3) When the number provided to the rows argument is greater than the total number of rows in the array, all rows will be returned.
4) When the number provided to the columns argument is greater than the total number of columns in the array, all columns will be returned.

Return value

It returns a subset of a given array.

Example

Here we take the following sales table as an example to show you how to use the TAKE function to return a specified subset from it.

#Example1: Take the specified number of rows or columns only

For example, you want to take only the first three rows or columns from the sales table. You can apply one of the formulas below to get it done.

Take the specified number of rows only

To take a specified number of rows only, such as the first three rows, you need to ignore the columns argument.

Select a cell, say H6 in this case, enter the formula below and press the Enter key to get the specified subset.

=TAKE(B6:F19,3)

Take the specified number of columns only

To take a specified number of columns only, such as the first three columns, you need to leave the rows argument blank.

Select a cell, say H6 in this case, enter the formula below and press the Enter key to get the specified subset.

=TAKE(B6:F19,,3)

#Example2: Take specific rows or columns from the end of an array

In the examples above, you can see that the rows and columns are returned from the start of the array. That’s because you have specified a positive number for the rows or columns argument.

To take rows and columns from the end of an array, you need to specify a negative number for rows or columns argument.

Take the last three rows

Select a cell, say H6 in this case, enter the formula below and press the Enter key to get the last three rows of the sales table.

=TAKE(B6:F19,-3)

Take the last three columns

Select a cell, say H6 in this case, enter the formula below and press the Enter key to get the last three columns of the sales table.

=TAKE(B6:F19,,-3)

#Example3: Take the last 3 columns of the first two rows from an array

For example, you need to take the last 3 columns of the first two rows from an array, numbers should be provided for both the rows and columns. The formula is as follows:

=TAKE(B6:F19,2,-3)


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL