TAKE function
a specified number of contiguous rows or columns from the start or end of an array.
Lookup and reference · Excel 2024+
Where can you use it?
Reporting and operations teams. Use functions in this group to retrieve a field from an item, employee or order list, select the right record, or move values into another report.
Scenario in the workbook
Take the first two records. A negative row count works from the other end.
A worked example from the workbook
| Row | A | B |
|---|---|---|
| 6 | Source value | Output position |
| 7 | 10 | 1 |
| 8 | 20 | 2 |
| 9 | 30 | 1 |
Record 1
=INDEX(TAKE($A$7:$A$9,2),B7,1)Expected result10
See the inputs and instructions for all 3 examplesCopyable formulas
English Excel · en-US
=INDEX(TAKE($A$7:$A$9,2),B7,1)Turkish Excel · tr-TR
=İNDİS(AL($A$7:$A$9;2);B7;1)Worked examples
Take the first two records. A negative row count works from the other end.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A | B |
|---|---|---|
| 6 | Source value | Output position |
| 7 | 10 | 1 |
| 8 | 20 | 2 |
| 9 | 30 | 1 |
| Case | Formula | Expected result |
|---|---|---|
| Record 1 | =INDEX(TAKE($A$7:$A$9,2),B7,1) |
10 |
| Record 2 | =INDEX(TAKE($A$7:$A$9,2),B8,1) |
20 |
| Record 3 | =INDEX(TAKE($A$7:$A$9,2),B9,1) |
10 |