Skip to main content

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

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


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, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations