Tag Archives: Array

Tom Urtis: Lookup with 2 or more criteria

Today’s post from Tom Urtis involves finding the record that matches two criteria, such as Chevrolet in column A and 4-Door in column B. The solution involves INDEX, MATCH entered as an array formula, so this is ranked pretty high on the Excel spicy scale. Read the complete article here.

From ‘Shift-Del’: “Universal Lookup w/o VBA”

From ‘Shift-Del’ of the Office-loesung.de Forum, we have a ‘Universal Lookup’ – complete with sample workbook. From the email we received from ‘Shift-Del’:

Some background on this project:
Such a universal lookup function should be in VBA, but since my skills are very limited I decided to write a formula solution.
I use a lot of defined names and a helper array to determin the row and the column for the final INDEX().
The names refer to the sheet and not to the workbook, so you can use multiple instances of the sheets without name conflicts.
The formula in C4:E4 resp. C7:E7 is just there to generate the #NUMBER! error.

‘Shift-Del’ may also be found at the following: Clever-forum.deOnline-excel.de and MrExcel.com

Richard Schollar: VLOOKUP Left!

Richard Schollar provides this guest post. Richard is an Excel MVP from the U.K.  When I saw the title of Richard’s post, I figured he was going to use INDEX/MATCH, but Richard really uses VLOOKUP!

How do you use a VLOOKUP if your table data holds the lookup value in a column to the right of the data column you want to return?

We’ve all had this problem – you want to use VLOOKUP but your data is ‘round the wrong way’:

You have the ID, you want to return the Description.  A normal VLOOKUP won’t work as you can’t use a negative column:

One alternative is to use INDEX/MATCH e.g.:

But wouldn’t it be cool to be able to use VLOOKUP?  But we can’t though, can we?  Sure we can, if we make use of the CHOOSE function:

That formula in G2 is:

That formula is =VLOOKUP(F2,CHOOSE({1,2},$C$2:$C$7,$A$2:$A$7),2,False)

How it works: CHOOSE returns an array of two ‘columns’ in the right order, based on the order in which you pass the columns into the CHOOSE function.  This creates an array that is in the correct Left-to-Right orientation for VLOOKUP to work. Here is the Evaluate Formula dialog after evaluating the CHOOSE function: