Function · Shape arrays

Excel CHOOSEROWS function

The Excel CHOOSEROWS function returns the rows you number. Rows 1 and 3 of the four utility bills are January's $143.60 and March's $118.45.

Microsoft 365 and Excel 2024, including Excel for the web. Also in Google Sheets. Excel 2021 does not have it.

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

CHOOSEROWS
=CHOOSEROWS(A1:B4,1,3)

Arguments

NameRequiredWhat to pass
arrayRequiredThe source. Row 1 is the first row of this array, not row 1 of the worksheet.
row_num1RequiredThe first row to return. A negative number counts from the bottom. -1 is the last row.
row_num2OptionalMore rows, in the order you want them spilled.

Examples

January and March from the utility list

=CHOOSEROWS(A1:B4,1,3)

Result Jan $143.60 and Mar $118.45

=CHOOSEROWS(A1:B4,1,3)D1
Bills
ABCDE
1Jan143.60Jan143.60
2Feb96.20Mar118.45
3Mar118.45
4Apr88.10
A picture of the sheet, not a live calculator. Row 1 of the array is January, even if that row is not row 1 of a larger sheet.

CHOOSEROWS pulls specific rows and spills them in the order you name. Rows 1 and 3 of the utility list are January $143.60 and March $118.45. February and April stay out. The numbering starts at the first row of the array you pass, not at row 1 of the worksheet. If the list starts at row 10, its first row is still row 1 to this function.

A negative number counts backward. -1 is April. You can repeat a row, or put row 3 before row 1, and the spill follows that order. TAKE is the shorter call when you only want a block at the top or the bottom. WRAPCOLS of Austin, Dallas, Houston, San Antonio, Fort Worth, El Paso, Plano, and Arlington, three to a column, has Austin, San Antonio, and Plano in row 1. CHOOSEROWS of that spill, row 1, returns those three names. Excel 2021 does not have CHOOSEROWS.