Learn about the Excel TAKE function, its uses, differences from similar functions, and practical examples for dynamic data analysis.
=TAKE(array, [rows], [columns])
array
: Range/table/data to work with (can be a column, row, or full table).rows
: Number of rows to take (positive for first n rows, negative for last n rows).columns
: (optional) Number of columns to take.=TAKE(A1:E10, 3)
=TAKE(A1:E10, -3)
=TAKE(A1:E10, , 2)
=TAKE(A1:E10, , )
=CHOOSECOLS(array, 2, 1)
)=AVERAGE(TAKE([MarketingSpend], -5))
=TAKE(FILTER([CampaignName], [Spend] >= 1000), -5)
=TAKE(SORTBY([CampaignName], [Spend], -1), 3)
=TAKE(SORTBY([CampaignName], [Spend], 1), 3)
=TAKE(SORTBY([CampaignName], [Spend], -1), {1;-1})
{1;-1}
(semicolon for vertical spill, comma for horizontal depending on regional settings).Get the top 5 campaigns (by lowest average cost) from two years' data combined.
=VSTACK(Table2023, Table2022)
=SORT(VSTACK(Table2023, Table2022), 4, 1)
=CHOOSECOLS(SORT(VSTACK(Table2023, Table2022), 4, 1), 1, 4)
=TAKE(CHOOSECOLS(SORT(VSTACK(Table2023, Table2022), 4, 1), 1, 4), 5)
Prompt for Engagement:
If you have other creative use cases for the TAKE function, share them in the comments!