Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to combine 2 or more chart types in a single chart in Excel
  • Conditional Formatting Data bars Examples in Excel
  • Subtotal function in Excel
  • How to create Checklist in Excel
  • Excel Frequency Function Example

References

  • How to get last column number in range in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel ROWS Function
  • How to use Excel COLUMN Function
  • Two-column Lookup in Excel

Data Validations

  • Excel Data validation exists in list
  • Excel Data validation with conditional list
  • Excel Data validation allow weekday only
  • Excel Data validation no punctuation
  • Excel Data validation only dates between

CHOOSE function: Description, Usage, Syntax, Examples and Explanation

by

What is Excel CHOOSE function?

CHOOSE function is one of Lookup and Reference functions in Microsoft Excel that uses index_num to return a value from the list of value arguments. Use CHOOSE to select one of up to 254 values based on the index number. For example, if value1 through value7 are the days of the week, CHOOSE returns one of the days when a number between 1 and 7 is used as index_num.

Syntax of CHOOSE function

CHOOSE(index_num, value1, [value2], …)

The CHOOSE function syntax has the following arguments:

  • Index_num    Required. Specifies which value argument is selected. Index_num must be a number between 1 and 254, or a formula or reference to a cell containing a number between 1 and 254.
    • If index_num is 1, CHOOSE returns value1; if it is 2, CHOOSE returns value2; and so on.
    • If index_num is less than 1 or greater than the number of the last value in the list, CHOOSE returns the #VALUE! error value.
    • If index_num is a fraction, it is truncated to the lowest integer before being used.
  • Value1, value2, …     Value 1 is required, subsequent values are optional. 1 to 254 value arguments from which CHOOSE selects a value or an action to perform based on index_num. The arguments can be numbers, cell references, defined names, formulas, functions, or text.
Worked Example:   How to randomly assign data to groups in Excel

CHOOSE formula explanation

  • If index_num is an array, every value is evaluated when CHOOSE is evaluated.
  • The value arguments to CHOOSE can be range references as well as single values.For example, the formula:
Worked Example:   Steps to create Dynamic calendar grid in Excel

=SUM(CHOOSE(2,A1:A10,B1:B10,C1:C10))

evaluates to:

=SUM(B1:B10)

which then returns a value based on the values in the range B1:B10.

The CHOOSE function is evaluated first, returning the reference B1:B10. The SUM function is then evaluated using B1:B10, the result of the CHOOSE function, as its argument.

Examples of CHOOSE function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

Worked Example:   How to get Holiday Date from Year in Excel

You can adjust the column widths to see all the data, if need be.

Data
1st Nails
2nd Screws
3rd Nuts
Finished Bolts
Formula Description Result
=CHOOSE(2,A2,A3,A4,A5) Value of the second list argument (value of cell A3) 2nd
=CHOOSE(4,B2,B3,B4,B5) Value of the fourth list argument (value of cell B5) Bolts
=CHOOSE(3,”Wide”,115,”world”,8) Value of the third list argument world

Example 2

Data
23
45
12
10
Formula Description (Result) Result
=SUM(A2:CHOOSE(2,A3,A4,A5)) Sums the range A2:A4. The CHOOSE function returns A4 as the second part of the range for the SUM function. 80

Post navigation

Previous Post:

CUBEVALUE function: Description, Usage, Syntax, Examples and Explanation

Next Post:

DVARP function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Complete List of Excel Logical Functions, References and Examples
  • Return blank if in Excel
  • IF with boolean logic in Excel
  • Extract multiple matches into separate rows in Excel
  • IF with wildcards in Excel

Date Time

  • TODAY function: Description, Usage, Syntax, Examples and Explanation
  • Get first day of previous month in Excel
  • Get day name from date in Excel
  • HOUR function: Description, Usage, Syntax, Examples and Explanation
  • Get work hours between dates in Excel

Grouping

  • Running count group by n size in Excel
  • Categorize text with keywords in Excel
  • Calculate conditional mode with criteria in Excel
  • Group numbers at uneven intervals in Excel
  • Map inputs to arbitrary values in Excel

General

  • Count cells that contain errors in Excel
  • Excel Ribbon Quick Overview For Beginners
  • Hide and Unhide Columns or Rows in Excel
  • How to password protect excel sheet?
  • How to fill cell ranges with random text values in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning