ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Vlookup from 2 columns (https://www.excelbanter.com/excel-worksheet-functions/98096-vlookup-2-columns.html)

cursednomore

Vlookup from 2 columns
 
What I want to do is use vlookup to match column a on sheet 1 to column a on
sheet 2, then match column b on sheet 1 to column b on sheet 2, and return
the value in column c on sheet 1. Can this be done?

Thanks in advance for any help.

Domenic

Vlookup from 2 columns
 
Try something like...

=INDEX(Sheet1!$C$2:$C$100,MATCH(1,IF(Sheet1!$A$2:$ A$100=Sheet2!A2,IF(Shee
t1!$B$2:$B$100=Sheet2!B2,1)),0))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
cursednomore wrote:

What I want to do is use vlookup to match column a on sheet 1 to column a on
sheet 2, then match column b on sheet 1 to column b on sheet 2, and return
the value in column c on sheet 1. Can this be done?

Thanks in advance for any help.


cursednomore

Vlookup from 2 columns
 
Perfect! Thanks very much, you just saved me a great deal of work!!

"Domenic" wrote:

Try something like...

=INDEX(Sheet1!$C$2:$C$100,MATCH(1,IF(Sheet1!$A$2:$ A$100=Sheet2!A2,IF(Shee
t1!$B$2:$B$100=Sheet2!B2,1)),0))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
cursednomore wrote:

What I want to do is use vlookup to match column a on sheet 1 to column a on
sheet 2, then match column b on sheet 1 to column b on sheet 2, and return
the value in column c on sheet 1. Can this be done?

Thanks in advance for any help.




All times are GMT +1. The time now is 03:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com