Syntax
| Parameter | Description |
|---|---|
| array | Parameter of the TAKE function. |
| rows | Parameter of the TAKE function. |
| [columns] | (Optional.) Parameter of the TAKE function. |
Examples
First 5 rows of a table
=TAKE(A1:D100, 5)
Last 3 rows
=TAKE(A1:D100, -3)
Top-left corner: first 3 rows, first 2 columns
=TAKE(A1:F50, 3, 2)
Common Errors
The rows or columns argument is zero (you must take at least 1 row or column, or use a negative number).
The absolute value of rows or columns exceeds the array dimensions.
Tips
TAKE(data, -5) gets the last 5 rows. This is perfect for showing the most recent entries in a log or transaction list.
=TAKE(SORT(A1:B100, 2, -1), 10) sorts by column 2 descending, then takes the top 10 rows — a leaderboard in one formula.
TAKE keeps the specified rows/columns; DROP removes them. They're complementary: TAKE(data, 3) and DROP(data, -N+3) give the same result if the math works out.
Try TAKE in Viztab
Import your data and use TAKE with 370+ other formulas. No signup required.
Open Viztab