The Excel CHOOSEROWS function allows you to extract rows from a range or array.
CHOOSEROWS Function Syntax
=CHOOSEROWS(array, row_num1, [row_num2], ...)
array : The array containing the rows to be returned.
row_num1 : The first row number to be returned
[row_num2] : [Optional] Additional row numbers to be returned.
Note: The CHOOSEROWS function is part of the new Excel Dynamic Arrays family. At the time of writing, Dynamic Arrays are only available in Microsoft 365. Excel 2021 and earlier Excel versions will not get CHOOSEROWS.
Watch the Video
Download the Example Workbook
Enter your email address below to download the sample workbook.
Excel CHOOSEROWS Function Examples
Let’s say I want to get the data from the first row of post codes and suburbs. I can do this easily with CHOOSEROWS:
We can rearrange the row order by specifying them in the row_num arguments like so:
We can also refer to the rows from the bottom by using negative values e.g. the last row can be found with -1 for the row_num. The second last row would be -2 and so on:
Tip: you can also specify the row numbers in an array e.g.:
Related Excel Array Shaping Functions
|Expands or pads an array to a specified number of rows and columns.
|Returns the array in a single row. Useful for combining data across multiple columns and rows into a single row.
|Returns the array in a single column. Useful for combining data across multiple columns and rows into a single column.
|Lets you wrap (reshape) a row or column of values into rows, you specify the number of values in each row.
|Lets you wrap (reshape) a row or column of values into columns, you specify the number of values in each column.
|Remove a specified number of contiguous rows or columns from the start or end of an array.
|Extract a specified number of contiguous rows or columns from the start or end of an array.
|Extract columns from the specified rows or rows.
|VSTACK and HSTACK Functions
|Combine arrays arranged vertically (VSTACK) or horizontally (HSTACK) into a new single array.