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.
Syntax =CHOOSEROWS(array, row_num1, [row_num2], ...)
=CHOOSEROWS(A1:B4,1,3)Arguments
| Name | Required | What to pass |
|---|---|---|
| array | Required | The source. Row 1 is the first row of this array, not row 1 of the worksheet. |
| row_num1 | Required | The first row to return. A negative number counts from the bottom. -1 is the last row. |
| row_num2 | Optional | More 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
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Jan | 143.60 | Jan | 143.60 | |
| 2 | Feb | 96.20 | Mar | 118.45 | |
| 3 | Mar | 118.45 | |||
| 4 | Apr | 88.10 |
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.