Contact

CHOOSEROWS Function in Google Sheets: Syntax, Examples & Compatibility

Array Intermediate Google Sheets

Learn how to return rows from a source table in an arbitrary order in Google Sheets. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: return rows from a source table in an arbitrary order in Google Sheets. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.

Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Google Sheets test results. A guide being published here does not certify every software release or file-import scenario.

Availability and version history

  • Introduced: Announced February 1, 2023; rollout paused February 22, resumed March 1, with access scheduled by March 14. These are service rollout dates, not desktop versions. Google release history.
  • Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
  • Checked: October 14, 2026; official CHOOSEROWS reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and arguments

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

Row numbers are positions inside the supplied array. A negative row index counts backward from the last row.

Best use case: Return rows from a source table in an arbitrary order.

Set up the example sheet

Populate A2:B4 with Pen,12, Pad,5, and Box,7. Put the formulas away from the input table so their outputs can expand.

Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.

Worked example 1: CHOOSEROWS with known input

=CHOOSEROWS(A2:B4,3,1)

Expected output: rows Box,7 followed by Pen,12.

Select the third source row first, then the first.

Worked example 2: a second CHOOSEROWS case

=CHOOSEROWS(A2:B4,-1)

Expected output: one row Box,7.

The index -1 refers to the final row of the source array.

Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.

Advanced example: repeat a position or sort by a value

Using the original three-row table:

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

The exact three-row by two-column result is Pen,12 / Box,7 / Pen,12. Repeating an index repeats that source row; it does not deduplicate the result.

For descending quantity order instead, use the separately documented SORT function:

=SORT(A2:B4,2,FALSE)

This returns Pen,12 / Box,7 / Pad,5. Here 2 identifies the second column within A2:B4, and FALSE requests descending order. CHOOSEROWS selects positions; SORT evaluates sort keys. Google Sheets also allows an aligned single-column external sort range. Do not assume that Excel’s SORTBY function name is the Sheets syntax.

Practical advice and troubleshooting

When this formula helps: CHOOSEROWS does not sort automatically. Use Google Sheets SORT if order should follow a value rather than explicit positions.

Important edge case: Using zero or an out-of-bounds row position generates an error. The resulting array needs a clear spill area.

If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. After importing a file, check function names and the destination application’s support as well as the input data.

Compatibility and version considerations

Modern Excel and Google Sheets list CHOOSEROWS; confirm negative-index behavior when migrating between versions.

Excel CHOOSEROWS requires Microsoft 365/Excel 2024; Google Sheets includes it in its current catalogue.

Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.

Editorial verification: Direct function documentation reviewed October 14, 2026. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.