This function is available in: MS Excel 2007 and above version, MS Excel 2011 for Mac and above version, Android, iPhone, Online etc. There are 7 popular lookup functions in MS Excel. One of them is Choose(). This function returns a value from a list (maximum 254 items in a list) whose nth number has given.
This function requires a position number and a list of range. Then the function will return the value from list of range by using the mentioned position number.
Functions Structure:
The structure of this function is:
There are 2 main arguments or parts in this function. These are:
(a) index_num: Need to mention a position number 1 to 254 to return that position's value.
(b) value1: This is the 1st item name of list. And this could be maximum value254. You can use a range as list_range also.
Examples:
Assume that, below is sample table B3:C8 and you are requested to return different types of Color in F3 cell from F2 position number :
Example # 1:
This will return Green due to in the Choose function I have told to return the value which is in 2nd position of given list C3, C4, C5, C6, C7 and C8. And the value of 2nd position is a reference C3 which is Green in the worksheet. So, the result is Green.
Example # 2:
This will return White due to in the Choose function I have told to return the value in 4th position from the given list. And the value of 4th position is a reference C6 which is White in the worksheet. So, the result is White.
Example # 3:
This will return Excel due to in the Choose function I have told to return the value in 3 rd position of given list. This time I have added some new items "Microsoft", 2016 and "Windows 8.1" in the list. And the value of 3 rd position is a Excel which is not a reference of the worksheet. So, the result is Excel.
Error:
#Value: If the given position is not present in the given list.
This function requires a position number and a list of range. Then the function will return the value from list of range by using the mentioned position number.
Functions Structure:
The structure of this function is:
=CHOOSE(index_num,value1,value2,value3,......,value254)
or
=CHOOSE(index_num,list_range)
There are 2 main arguments or parts in this function. These are:
(a) index_num: Need to mention a position number 1 to 254 to return that position's value.
(b) value1: This is the 1st item name of list. And this could be maximum value254. You can use a range as list_range also.
Examples:
Assume that, below is sample table B3:C8 and you are requested to return different types of Color in F3 cell from F2 position number :
Image 1: Choose function Sample Table
Example # 1:
=CHOOSE(F3,C3,C4,C5,C6,C7,C8)
This will return Green due to in the Choose function I have told to return the value which is in 2nd position of given list C3, C4, C5, C6, C7 and C8. And the value of 2nd position is a reference C3 which is Green in the worksheet. So, the result is Green.
Image 2: Choose function result 1
Example # 2:
=CHOOSE(4,C3,C4,C5,C6,C7,C8)
This will return White due to in the Choose function I have told to return the value in 4th position from the given list. And the value of 4th position is a reference C6 which is White in the worksheet. So, the result is White.
Image 3: Choose function result 2
Example # 3:
=CHOOSE(3,"Microsoft",2016,"Excel","Windows 8.1",C4)
This will return Excel due to in the Choose function I have told to return the value in 3 rd position of given list. This time I have added some new items "Microsoft", 2016 and "Windows 8.1" in the list. And the value of 3 rd position is a Excel which is not a reference of the worksheet. So, the result is Excel.
Error:
#Value: If the given position is not present in the given list.