FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

CHOOSEROWS in Google Sheets

CHOOSEROWS with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the CHOOSEROWS Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

First and last

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500

Formula: F2: =CHOOSEROWS(B2:B6,1,-1)

Result: Spills down: Ana, Eli

Row 1 is Ana and -1 points to the bottom row, Eli.

Repeated rows

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500

Formula: F2: =CHOOSEROWS(B2:B6,2,2,4)

Result: Spills down: Ben, Ben, Dan

Row 2 appears twice and is followed by row 4.

Add specific rows

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500

Formula: F2: =SUM(CHOOSEROWS(C2:C6,1,3,5))

Result: 3130

Rows 1, 3 and 5 hold 1200, 430 and 1500.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =CHOOSEROWS(A2:D7,1,-1)

Example spreadsheet for CHOOSEROWS
ABCDEFGHI
1RegionProductUnitsPriceResult
2EastPen1202.5EastPen1202.5
3WestPen802.5EastLamp1525
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: East

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.