Why use Choose instead of Lookup?

RSXchin

Well-known Member
Joined
Oct 23, 2010
Messages
758
I've been trying to wrap my head around the Choose function and its application. I can't think of a reason to use Choose instead of Lookup.

Can anyone give me some good examples instead of links to pages I've probably already not understood?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Here are a couple examples:

Easily referencing different cells based on a user selection in A1:
Code:
=CHOOSE(A1,Sheet1!B29,Sheet2!A12,Sheet3!Z14)
Looking up a tax rate on the appropriate table based on a user selection
Code:
A1:
=VLOOKUP(B1,CHOOSE(A1,Sheet1!B29:C35,Sheet2!A12:B40,Sheet3!Z14:AA27),2,1)
Does that help?
 
Upvote 0
Choose can also be used to trap errors..

If the result of the vlookup is normally numeric
=LOOKUP(9.99999999999999E307,CHOOSE({1,2},0,VLOOKUP(....)))


If the vlookup is expected to return Text, use
=LOOKUP(REPT("Z",255),CHOOSE({1,2},"",VLOOKUP(....)))
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top