Excel formula referencing multiple columns between tables.

I have 2 tables each with 2 columns referenced to find an answer and place it on a 3rd table,

30,23,na,no,"box of rocks"
30,24,no,yes,"bigger box of rocks"
31,gam,no,no,"rare item"
30,3b5,na,no,"box of rocks, the original"
453,234,5,8,"barrel of monkeys"
453,3b6,4,8,"barrel of dirty monkeys"

on a 3rd page i would like to have the following
120,453, ,
130,453,"barrel of monkeys",5
140,30,"box of rocks",na
150,453,"box of rocks, the original",na
160,1278, ,
170,30, ,

I have tried vlookup but to no avail, what formula would I use here to match the data across the pages?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
You can't use VLOOKUP() with more than one value to match, you have to go to a combination of MATCH() and INDEX(), using array formulas.

Attached is the idea.  Sheet3 is basically the first three columns from Sheet1, and then uses that to do the lookup on Sheet2 of cid and product to find the two desired columns.

Notice that the formulas in those added columns on Sheet3 have { } around them, that indicates an array formula.  Array formulas have to be entered with CONTROL-SHIFT-ENTER when you are done editting the formula, rather than the normal ENTER.

Hope this helps and gives you some ideas.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
csePixelatedAuthor Commented:
Thank you for your swift response, this is precisely what i needed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.