TAKE Function in Excel: First or Last N Rows of a Range

TAKE Function in Excel: First or Last N Rows of a Range featured illustration

📎 This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 5 October 2026

Dynamic ArrayLevel: ExpertAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. TAKE in practice
  6. Where you will use it
  7. Worked example
  8. Mistakes people make
  9. Related functions
  10. Continue learning

TAKE returns the first (or last, with a negative number) rows or columns of an array — perfect for top-N reports.

Advertisement

Syntax

=TAKE(array, rows, [columns])
Argument What it means
rows Positive = from the top, negative = from the bottom.

Examples

Example 1

=TAKE(SORT(A2:E500, 5, -1), 10)

Top 10 rows by amount.

Example 2

=TAKE(A2:E500, -5)

Last 5 rows — the latest entries.

TAKE in practice

Where you will use it

  • First or last N rows
  • Top 5 after SORT
  • Latest records

Worked example

RowsFormulaResult
2=ARRAYTOTEXT(TAKE({"Apr",100;"May",120;"Jun",150},A2))Apr, 100, May, 120
-1=ARRAYTOTEXT(TAKE({"Apr",100;"May",120;"Jun",150},A3))Jun, 150
1=ARRAYTOTEXT(TAKE({"Apr",100;"May",120;"Jun",150},A4))Apr, 100

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
NegativeTakes from the end
Zero#CALC!

DROP · SORT · CHOOSEROWS

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

⚡ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

📎 Practice files for this article

  • 📗
    Practice workbook: Dynamic arrays18 tasks on realistic sales data — type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX · 35 KB

Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *