Lookup & Reference
Excel 365
◉ 15 views
Dynamic Array
=CHOOSECOLS()
CHOOSECOLS function
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for Mac
=CHOOSECOLS(array,col_num1,[col_num2],…)
Hover argument names in the table for details.
Output typeArray
Popularity50 / 100
VolatileNo
Dynamic ArrayYes
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =CHOOSECOLS() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
array |
Array | Required | The array containing the columns to be returned in the new array. |
col_num1 |
Number | Required | The first column to be returned. |
col_num2 |
Number | Optional | Additional columns to be returned. |
▣ Examples
▦ Data
| Cell | Value |
|---|---|
A2 |
1 |
B2 |
2 |
C2 |
3 |
D2 |
4 |
E2 |
5 |
A3 |
6 |
B3 |
7 |
C3 |
8 |
D3 |
9 |
E3 |
10 |
A4 |
11 |
B4 |
12 |
C4 |
13 |
D4 |
14 |
E4 |
15 |
A5 |
16 |
B5 |
17 |
C5 |
18 |
D5 |
19 |
E5 |
20 |
A6 |
21 |
B6 |
22 |
C6 |
23 |
D6 |
24 |
E6 |
25 |
A7 |
26 |
B7 |
27 |
C7 |
28 |
D7 |
29 |
E7 |
30 |
A8 |
1 |
B8 |
2 |
C8 |
13 |
D8 |
14 |
A9 |
3 |
B9 |
4 |
C9 |
15 |
D9 |
16 |
A10 |
5 |
B10 |
6 |
C10 |
17 |
D10 |
18 |
A11 |
7 |
B11 |
8 |
C11 |
19 |
D11 |
20 |
A12 |
9 |
B12 |
10 |
C12 |
21 |
D12 |
22 |
A13 |
11 |
B13 |
12 |
C13 |
23 |
D13 |
24 |
A14 |
1 |
B14 |
2 |
C14 |
13 |
D14 |
14 |
A15 |
3 |
B15 |
4 |
C15 |
15 |
D15 |
16 |
A16 |
5 |
B16 |
6 |
C16 |
17 |
D16 |
18 |
A17 |
7 |
B17 |
8 |
C17 |
19 |
D17 |
20 |
A18 |
9 |
B18 |
10 |
C18 |
21 |
D18 |
22 |
A19 |
11 |
B19 |
12 |
C19 |
23 |
D19 |
24 |
A20 |
1 |
B20 |
2 |
C20 |
3 |
D20 |
4 |
E20 |
5 |
A21 |
6 |
B21 |
7 |
C21 |
8 |
D21 |
9 |
E21 |
10 |
A22 |
11 |
B22 |
12 |
C22 |
13 |
D22 |
14 |
E22 |
15 |
A23 |
16 |
B23 |
17 |
C23 |
18 |
D23 |
19 |
E23 |
20 |
A24 |
21 |
B24 |
22 |
C24 |
23 |
D24 |
24 |
E24 |
25 |
A25 |
26 |
B25 |
27 |
C25 |
28 |
D25 |
29 |
E25 |
30 |
A26 |
1 |
B26 |
2 |
C26 |
13 |
D26 |
14 |
A27 |
3 |
B27 |
4 |
C27 |
15 |
D27 |
16 |
A28 |
5 |
B28 |
6 |
C28 |
17 |
D28 |
18 |
A29 |
7 |
B29 |
8 |
C29 |
19 |
D29 |
20 |
A30 |
9 |
B30 |
10 |
C30 |
21 |
D30 |
22 |
A31 |
11 |
B31 |
12 |
C31 |
23 |
D31 |
24 |
A32 |
1 |
B32 |
2 |
C32 |
13 |
D32 |
14 |
A33 |
3 |
B33 |
4 |
C33 |
15 |
D33 |
16 |
A34 |
5 |
B34 |
6 |
C34 |
17 |
D34 |
18 |
A35 |
7 |
B35 |
8 |
C35 |
19 |
D35 |
20 |
A36 |
9 |
B36 |
10 |
C36 |
21 |
D36 |
22 |
A37 |
11 |
B37 |
12 |
C37 |
23 |
D37 |
24 |
Example 1
=CHOOSECOLS(A2:E7,1,3,5,1)
Example 2
=CHOOSECOLS(A2:D7,3,4)
Example 3
=CHOOSECOLS(A2:D7,-1,-2)
⚠ Common Errors
#VALUE!
Excel returns a #VALUE error if the absolute value of any of the col_num arguments is zero or exceeds the number of columns in the array.
Fix: Check the column numbers
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!