First and last
| A | B | C | |
|---|---|---|---|
| 1 | Region | Rep | Amount |
| 2 | East | Ana | 1200 |
| 3 | West | Ben | 850 |
| 4 | East | Cara | 430 |
| 5 | North | Dan | 970 |
| 6 | West | Eli | 1500 |
Formula: F2: =CHOOSEROWS(B2:B6,1,-1)
Result: Spills down: Ana, Eli
Row 1 is Ana and -1 points to the bottom row, Eli.
CHOOSEROWS with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the CHOOSEROWS Excel guide; check the function help in Google Sheets for its own argument list.
| A | B | C | |
|---|---|---|---|
| 1 | Region | Rep | Amount |
| 2 | East | Ana | 1200 |
| 3 | West | Ben | 850 |
| 4 | East | Cara | 430 |
| 5 | North | Dan | 970 |
| 6 | West | Eli | 1500 |
Formula: F2: =CHOOSEROWS(B2:B6,1,-1)
Result: Spills down: Ana, Eli
Row 1 is Ana and -1 points to the bottom row, Eli.
| A | B | C | |
|---|---|---|---|
| 1 | Region | Rep | Amount |
| 2 | East | Ana | 1200 |
| 3 | West | Ben | 850 |
| 4 | East | Cara | 430 |
| 5 | North | Dan | 970 |
| 6 | West | Eli | 1500 |
Formula: F2: =CHOOSEROWS(B2:B6,2,2,4)
Result: Spills down: Ben, Ben, Dan
Row 2 appears twice and is followed by row 4.
| A | B | C | |
|---|---|---|---|
| 1 | Region | Rep | Amount |
| 2 | East | Ana | 1200 |
| 3 | West | Ben | 850 |
| 4 | East | Cara | 430 |
| 5 | North | Dan | 970 |
| 6 | West | Eli | 1500 |
Formula: F2: =SUM(CHOOSEROWS(C2:C6,1,3,5))
Result: 3130
Rows 1, 3 and 5 hold 1200, 430 and 1500.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =CHOOSEROWS(A2:D7,1,-1)
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Price | Result | ||||
| 2 | East | Pen | 120 | 2.5 | East | Pen | 120 | 2.5 | |
| 3 | West | Pen | 80 | 2.5 | East | Lamp | 15 | 25 | |
| 4 | East | Book | 45 | 12 | |||||
| 5 | North | Book | 60 | 12 | |||||
| 6 | West | Lamp | 30 | 25 | |||||
| 7 | East | Lamp | 15 | 25 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page