Choose {1,2}

marisa01

New Member
Joined
Jan 2, 2014
Messages
3
Hello can someone help me with this formula,

I am trying to understand if this is an array or a regular formula Choose {1,2}, what does that mean?

Thank you in advance.

If(Isna(Vllookup(A3, Choose {1,2}
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Welcome to the board.

Well, we'd have to see the entire actual formula to really give a definitive answer.

But it looks like a method that is used to cheat Vlookup into reading backwards.
Vlookup can only find a match in one column, and return a value from a column 'to the right' of where the match is found.
It Cannot return a value from a column 'to the left' of where the match is found.

But there are methods using the CHOOSE function to rebuild a range so that Column B is actually on the LEFT side of Column A.
 
Upvote 0
You can also do a similar thing with IF function, e.g.

=VLOOKUP(A2,IF({1,0},C2:C10,B2:B10),2,0)

that looks up A2 in C2:C10 and returns the corresponding value from B2:B10

It's a nice trick, as is the CHOOSE option, but if you want your formulas to be easily understood and modified (possibly by others), then it would probably be better to use a more "conventional" INDEX/MATCH approach like

=INDEX(B2:B10,MATCH(A2,C2:C10,0))
 
Upvote 0

Forum statistics

Threads
1,215,743
Messages
6,126,613
Members
449,322
Latest member
Ricardo Souza

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