FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

CHOOSECOLS in Google Sheets

CHOOSECOLS 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 CHOOSECOLS Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

The Amount column

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

Formula: F2: =CHOOSECOLS(A2:C6,3)

Result: Spills down: 1200, 850, 430, 970, 1500

Column 3 of the block holds the amounts.

Counting from the right

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

Formula: F2: =CHOOSECOLS(A2:C6,-2)

Result: Spills down: Ana, Ben, Cara, Dan, Eli

-2 is the second column from the right, which is Rep.

Reordered columns in one cell

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

Formula: F2: =TEXTJOIN("-",,CHOOSECOLS(A2:C2,3,1))

Result: 1200-East

Column 3 (the amount) is placed before column 1 (the region).

Try it

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

Formula in F2: =CHOOSECOLS(A2:D7,1,3)

Example spreadsheet for CHOOSECOLS
ABCDEFG
1RegionProductUnitsPriceResult
2EastPen1202.5East120
3WestPen802.5West80
4EastBook4512East45
5NorthBook6012North60
6WestLamp3025West30
7EastLamp1525East15
Result in F2: East
Practice this in a lesson: TAKE, DROP, CHOOSECOLS, VSTACK

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