Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Multiple column Lookup

Posted on 2013-06-17
Medium Priority
242 Views
I want to lookup a value in a table and place it into a specific column.   The lookup is to match two different values from two different columns.    For instance:

I have a source table with three columns:   (there are many more values that that shown here, but this should be enough for the example.

The table to place the values in has three columns with the same names.

So if I have 0007 in the Task column AND 02 in the SubTask column, I will get "SubTask B Title" in the Subtask Title column.   Kind  of like a double VLOOKUP.
0
Question by:StevenPMoffat
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 23

Accepted Solution

NBVC earned 750 total points
ID: 39254415
Assuming table 1 is in Sheet1, starting at A2... and assuming the inputs are in A2 and B2, respectively of the summary sheet, try something like:

=INDEX(Sheet1!\$C\$2:\$C\$100,MATCH(1,INDEX((Sheet1!\$A\$2:\$A\$100=A2)*(Sheet1!\$B\$2:\$B\$100=B2),0),0))

adjust sheetnames and references to suit...  try not to use whole column references as this formula is not efficient with whole columns....
0

LVL 23

Expert Comment

ID: 39254424
Here is a sample using my technique
Book5.xlsx
0

Author Closing Comment

ID: 39260563
My original Question had been to do this with tables as opposed to sheets, but I was able to take your idea and convert it into Table References, something like:
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
###### Suggested Courses
Course of the Month7 days, 21 hours left to enroll