Syntax
| Parameter | Description |
|---|---|
| array | Parameter of the CHOOSEROWS function. |
| row_num1 | Parameter of the CHOOSEROWS function. |
| [row_num2 | (Optional.) Parameter of the CHOOSEROWS function. |
| ...] | Parameter of the CHOOSEROWS function. |
Examples
Pick specific records
=CHOOSEROWS(A1:D100, 1, 5, 10, 25)
Reverse row order
=CHOOSEROWS(A1:D5, 5, 4, 3, 2, 1)
Last row of a dataset
=CHOOSEROWS(A1:D100, -1)
Common Errors
A row number is zero or its absolute value exceeds the total number of rows in the array.
The output range overlaps with existing non-empty cells.
Tips
Use CHOOSEROWS(data, -1, -2, -3) to get the last 3 rows in reverse order. No need to know the total row count.
Use CHOOSEROWS to pull header row + specific data rows: CHOOSEROWS(data, 1, 10, 20, 30) gives you the header plus 3 specific records.
=CHOOSEROWS(A1:D100, SEQUENCE(5, 1, 10)) returns rows 10-14. Use SEQUENCE to generate consecutive row numbers dynamically.
Try CHOOSEROWS in Viztab
Import your data and use CHOOSEROWS with 370+ other formulas. No signup required.
Open Viztab