How do I lookup two cells and return a third.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have data in this format:

Sheet #1
Name Year Amount
Joe 2000 100
Joe 2005 200
Sam 2003 65

And want to return Amount in another worksheet.

Sheet#2
2000 2003 2005
Joe
Sam

How do I do the lookup or match to get the data for Joe for 2000 and 2005 in
the proper cells of Worksheet#2
 
This is an array formula - commit it with Ctrl+Shift+Enter

=INDEX(C1:C3,MATCH("Joe"&"2005",A1:A3&B1:B3,0))

where the names are in column A, the years are in column B and the values
are in column C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top