CHOOSECOLS and CHOOSEROWS in Excel: Extract and Reorder Columns or Rows

Isometric spreadsheet illustration showing CHOOSECOLS in Excel extracting and reordering columns

Pulling three non-adjacent columns out of a wide master table—or flipping the order of rows without touching the source data—used to require fragile INDEX formulas, helper columns, or manual copy-pasting. With CHOOSECOLS in Excel and its row-based sibling CHOOSEROWS, you can extract, reorder, and even duplicate specific columns or rows dynamically using one clean formula.

Availability & Compatibility: Per the official CHOOSECOLS function documentation and CHOOSEROWS function documentation, both functions are available in Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel for the web, Excel 2024, and Excel 2024 for Mac (plus Google Sheets). Older perpetual builds such as Excel 2021 and Excel 2019 do not support them and will return #NAME?.

How CHOOSECOLS in Excel Works (Pick & Reorder Columns)

CHOOSECOLS returns only the columns you ask for from an array, in the exact order you list their column numbers. Here is the complete syntax:

=CHOOSECOLS(array, col_num1, [col_num2], ...)
  • array (Required): The source range or dynamic array containing the columns you want to extract.
  • col_num1 (Required): The position of the first column to return. Positive numbers count from left to right (1 is the first column); negative numbers count from right to left (-1 is the last column).
  • col_num2, … (Optional): Additional column numbers to include, reorder, or repeat.

Suppose your Practice sheet holds a five-column employee directory in A6:E11 (Employee ID, Full Name, Department, Region, and Salary). To build a clean three-column summary showing only Full Name (column 2), Department (column 3), and Salary (column 5), enter:

=CHOOSECOLS(A6:E11, 2, 3, 5)

Want to put Salary first and Full Name second using negative and positive indices together? Pass -1 for the rightmost column followed by 2:

=CHOOSECOLS(A6:E11, -1, 2)

How CHOOSEROWS Works (Extract & Reverse Rows)

CHOOSEROWS mirrors CHOOSECOLS vertically, letting you pick specific non-adjacent rows or reverse row order without sorting:

=CHOOSEROWS(array, row_num1, [row_num2], ...)

To pull only rows 1, 3, and 5 from A6:E11 (Maya Lin, Elena Rostova, and Sofia Alvarez), enter:

=CHOOSEROWS(A6:E11, 1, 3, 5)

Need the last two rows in reverse bottom-up order? Use negative row numbers:

=CHOOSEROWS(A6:E11, -1, -2)

You can also pass an array constant like {1,3} inside CHOOSEROWS or pair it with TAKE and DROP in Excel when you need both contiguous slicing and non-adjacent picks, or feed selected columns straight into XLOOKUP in Excel.

CHOOSECOLS vs. CHOOSEROWS vs. TAKE & DROP

Use this quick comparison to decide which array-slicing function fits your task best:

FunctionSelection TypeReorders or Repeats?Negative IndicesBest For
CHOOSECOLSSpecific columns (any order)YesCount from right (-1 = last)Picking & reordering non-adjacent columns
CHOOSEROWSSpecific rows (any order)YesCount from bottom (-1 = last)Sampling rows or reversing order
TAKE / DROPContiguous block onlyNoSlice from endTop/bottom N rows or stripping headers

Troubleshooting #VALUE!, #SPILL!, and #NAME? Errors

  • #VALUE! error: Per Microsoft Support, Excel returns #VALUE! if the absolute value of any col_num or row_num argument is 0 or exceeds the total number of columns or rows in array (for example, asking for column 6 in a 5-column table).
  • #SPILL! error: Both functions return dynamic arrays that spill onto neighboring cells. Any existing value or merged cell in the output area blocks the result—see our guide on how to fix the #SPILL! error in Excel.
  • #NAME? error: The workbook was opened in Excel 2021 or older, where CHOOSECOLS and CHOOSEROWS are unavailable.

Frequently Asked Questions

What is the difference between CHOOSECOLS and CHOOSEROWS in Excel?

CHOOSECOLS extracts and reorders specific columns from an array, while CHOOSEROWS extracts and reorders specific rows from an array.

Why does CHOOSECOLS return #VALUE! in Excel?

Excel returns #VALUE! if any column number argument is 0 or if its absolute value is greater than the total number of columns in the source array.

Can I use negative numbers in CHOOSECOLS and CHOOSEROWS?

Yes. Negative numbers count backward from the end of the array—for example, -1 returns the last column in CHOOSECOLS or the last row in CHOOSEROWS.

Can CHOOSECOLS repeat the same column twice?

Yes. Passing =CHOOSECOLS(A6:E11, 1, 3, 1) returns column 1, column 3, and column 1 again in the spilled output.

Do CHOOSECOLS and CHOOSEROWS work in Google Sheets and Excel 2021?

Both functions work in Google Sheets, Excel for Microsoft 365, and Excel 2024. They are not supported in Excel 2021 or earlier perpetual versions.

Download the practice workbook

The same data as this tutorial, with empty answer cells and a Solutions sheet.

Team Xl in Excel

Team Xl in Excel

Spreadsheet Architect & Educator at Xl in Excel. Sharing advanced formulas, dynamic arrays, and clean data modeling techniques.

Learn More About Team Xl in Excel →

Leave a Reply

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

Zoom: 100% | UTF-8 | Xl in Excel