How to Use the CHOOSECOLS and CHOOSEROWS Functions in Microsoft Excel

When working with expansive data tables or importing dynamic array queries, financial analysts and data modelers rarely need every single column or row in the final report. Extracting specific fields or rearranging column order historically required tedious helper formulas or multiple INDEX expressions. With modern Excel, the CHOOSECOLS and CHOOSEROWS functions provide direct, formulaic control to isolate, reorder, and restructure matrix layouts dynamically.

Understanding CHOOSECOLS and CHOOSEROWS Syntax

Both functions accept a source array followed by numerical indices representing desired output positions:

  • =CHOOSECOLS(array, col_num1, [col_num2], ...): Extracts and arranges specified columns into a new dynamic spill array.
  • =CHOOSEROWS(array, row_num1, [row_num2], ...): Extracts and arranges specified rows into a new dynamic spill array.

Indices can be supplied in any sequence to reorder data, and negative numbers can be used to reference positions from the right or bottom of the range (e.g., -1 represents the very last column or row).

Extracting and Rearranging Non-Adjacent Columns

Consider a raw dataset spanning columns A through G (ID, First Name, Last Name, Department, Hire Date, Salary, Region):

  1. To construct a clean summary table featuring only ID (column 1), Last Name (column 3), and Salary (column 6):
    =CHOOSECOLS(A2:G100, 1, 3, 6)
  2. To completely reorder columns—placing Salary first followed by ID and Last Name:
    =CHOOSECOLS(A2:G100, 6, 1, 3)
  3. Excel dynamically spills the selected fields without modifying or duplicating raw dataset columns.

Isolating Top and Bottom Records with CHOOSEROWS

Combining CHOOSEROWS with negative indices allows instantaneous extraction of boundary values:

=CHOOSEROWS(SORT(A2:G100, 6, -1), 1, 2, 3)

This expression sorts the dataset by salary in descending order and isolates the top 3 highest-earning positions. To extract the bottom-most record from a variable table, use: =CHOOSEROWS(DataTable, -1).

Pairing with Dynamic Array Pipelines

Wrap CHOOSECOLS around FILTER or UNIQUE outputs to strip extraneous attributes prior to presentation. Mastering CHOOSECOLS and CHOOSEROWS provides unmatched agility when shaping dynamic reports in Excel.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.