Lookup 2 cells

Can an expert assist me with this lookup please.

I need to look up 'A' and 'B' on sheet 2 and return 'C' from sheet 1 [range is Data]

I have shown in the attached spreadsheet what the results should be for the first 3, i.e.

A      GBP         XYZ
B      EUR         XYZ
C      CAD         ABC

thank you
lookup-2-cells.xlsx
JagwarmanAsked:
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.

Ryan ChongCommented:
in Sheet2, cell C2, try use formula:

={ INDEX(Sheet1!C:C, MATCH(1,(Sheet1!A:A=Sheet2!A2)*(Sheet1!B:B=Sheet2!B2),0)) }

Open in new window


and drag down formula accordingly. pls note this is an array formula.
0
ProfessorJimJamCommented:
put this and enter with control shift enter  =INDEX(Sheet1!C:C,MATCH(Sheet2!A2&Sheet2!B2,Sheet1!A:A&Sheet1!B:B,0))

see attached file.
lookup-2-cells.xlsx
0
[ fanpages ]IT Services ConsultantCommented:
Hi again,

I have placed the following array formulae within cell [C2] of the [Sheet2] worksheet, then copied it down column [C] to cell [C31]:
=INDEX(Sheet1!A:C,MATCH(1,(Sheet1!A:A=A2)*(Sheet1!B:B=B2),0),3)

The entry of an array formula is not just use of [Return]/[Enter], but [CTRL]+[SHIFT]+[ENTER].


Further information about array formulae can be read here:
[ https://support.office.com/en-za/article/Guidelines-and-examples-of-array-formulas-7d94a64e-3ff3-4686-9372-ecfd5caa57c7 ]

I have attached your original workbook with the formula applied as summarised above.

Q_28713939.jpgQ_28713939.xlsx
0

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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

[ fanpages ]IT Services ConsultantCommented:
^ That'll teach me not to provide extended instructions & screen images! :)
0
JagwarmanAuthor Commented:
They are all 'Best Solution'  many thanks
0
ProfessorJimJamCommented:
Jagwarman,

in case if you do not want to use CONTROL SHIFT ENTER. then you can use this formula

=LOOKUP(2,1/(Sheet1!A:A=Sheet2!A2)/(Sheet1!B:B=Sheet2!B2),Sheet1!C:C)
lookup-2-cells.xlsx
0
[ fanpages ]IT Services ConsultantCommented:
Thanks for being fair with the points allocated, Jagwarman.

PS. I have just sent you a "Message" via this site's internal system.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.