-1

I would like to do a vlookup or any function to match data in two sheets (sheet A and sheet B).

This is my sheet A:

This is my sheet B (Imagine the column is A, B, C, instead of E,F,G in the image):

I want the answer in sheet B, column C. E.g. the result should be like below.

I tested the function below, but not working.

=VLOOKUP($A1+$B1,SheetA!$A:$C,3,FALSE)
Djib2011
  • 6,154
  • 5
  • 33
  • 39

1 Answers1

0

You can use an array formula version of INDEX/MATCH to match on multiple criteria (you must press CTRL+SHIFT+ENTER after typing it in the formula bar to make it an array formula):

=INDEX(SheetA!$C$3:$C$6, MATCH(1, (SheetB!E3 = SheetA!$A$3:$A$6) * (SheetB!F3 = SheetA!$B$3:$B$6),0))

Each set of criteria goes in parenthesis within MATCH, separated by *, with the value on the left, and the range to match from on the right of the = sign.

Mako212
  • 6,318
  • 1
  • 16
  • 32