CHOOSECOLS vs CHOOSEROWS Function in Excel + Tips
Learn how to use CHOOSECOLS and CHOOSEROWS in Excel step-by-step to extract specific columns or rows from a table with simple examples and tips.
Hello everyone! Today i will show you how to use CHOOSECOLS and CHOOSEROWS functions in Microsoft Excel step by step. Very easy and powerful formulas in Excel 365, Excel 2024, and Excel for Web to pick exact columns or rows you want!
1. What is CHOOSECOLS and CHOOSEROWS Function?
- CHOOSECOLS: Extract specific columns from a table or range by column numbers.
- CHOOSEROWS: Extract specific rows from a table or range by row numbers.
Think of CHOOSECOLS and CHOOSEROWS like custom selection tools:
- Need only Column 1 and Column 3? Use
CHOOSECOLS(array, 1, 3). - Need only Row 2 and Row 5? Use
CHOOSEROWS(array, 2, 5). - Want to reorder columns or rows (e.g. put column 3 before column 1)? Both formulas can reorder easily!
2. 🛠️ Formula Syntax & Parameters
=CHOOSECOLS(array, col_num1, [col_num2], ...)
=CHOOSEROWS(array, row_num1, [row_num2], ...)
array: Required. The source table range or data array (e.g.,A2:D6).col_num1/row_num1: Required. The first column or row index to extract.[col_num2] / [row_num2]: Optional. Additional column or row index numbers (up to 126 numbers).- Positive number (e.g.,
1,3): Count from top/left (first row/column is 1). - Negative number (e.g.,
-1,-2): Count from bottom/right (last row/column is -1).
- Positive number (e.g.,
3. 📋 Practical Examples
Example Data Table (A2:D6)
| Row | Column A (ID) | Column B (Name) | Column C (Department) | Column D (Salary) |
|---|---|---|---|---|
| 2 | 101 | John | Sales | $1,200 |
| 3 | 102 | Alex | IT | $2,500 |
| 4 | 103 | Sara | HR | $1,800 |
| 5 | 104 | David | Sales | $2,100 |
| 6 | 105 | Emma | IT | $2,800 |
Example 1: Extract Specific Columns with CHOOSECOLS
If you only want Name (Column 2) and Salary (Column 4):
=CHOOSECOLS(A2:D6, 2, 4)
👉 Result: Returns 2 columns only (Name and Salary), ignoring ID and Department!
Example 2: Reorder Columns (Put Salary First)
You can change column display sequence without moving real table data:
=CHOOSECOLS(A2:D6, 4, 2, 1)
👉 Result: Returns Salary first, then Name, then ID!
Example 3: Extract Specific Rows with CHOOSEROWS
Extract 1st row (John) and 3rd row (Sara):
=CHOOSEROWS(A2:D6, 1, 3)
👉 Result: Returns 2 rows only for John and Sara!
Example 4: Use Negative Numbers for Last Column / Last Row
- Extract the last column (Salary):
=CHOOSECOLS(A2:D6, -1) - Extract the last 2 rows (David and Emma):
=CHOOSEROWS(A2:D6, -2, -1)
👉 Result: Negative index makes it super simple to get bottom rows or rightmost columns without counting total length!
Example 5: Combine CHOOSECOLS + CHOOSEROWS Together!
You can nest both formulas to get exact cell matrix (e.g., get last row, with Name and Salary columns only):
=CHOOSECOLS(CHOOSEROWS(A2:D6, -1), 2, 4)
👉 Result: Returns "Emma" and "$2,800"!
💡 Quick Tips for CHOOSECOLS & CHOOSEROWS
- Use Negative Numbers to Pick From End:
-1is always the last row/column,-2is second to last. You don't needCOLUMNS()orROWS()length math! - Reorder Columns or Rows Instantly: Swap column order like
=CHOOSECOLS(A2:D6, 3, 1, 2)without modifying original source table! - Repeat Columns or Rows: You can pass the same index multiple times (e.g.,
=CHOOSECOLS(A2:D6, 1, 1, 2)duplicates column 1 twice). - Excel Version Requirement: Both functions are dynamic array formulas, available in Microsoft 365, Excel 2024, and Excel for Web.
📚 Related Resources & Tutorials
Related Tutorials
Opens in new tab ↗TOCOL vs TOROW in Excel + Tips
Learn how to convert 2D array into a single column or single row in Excel step-by-step with simple examples and tips.
How to Use SEQUENCE Function in Excel + Tips
Learn how to use SEQUENCE function in Excel step-by-step to generate automatic numbers, dates, and tables with easy examples and tips.
How to Use TAKE Function in Excel + Tips
Learn how to use TAKE function in Excel step-by-step to extract the first or last N rows and columns from a range with simple examples and tips.