VLOOKUP alternative using three lookup values

后端 未结 2 1288
-上瘾入骨i
-上瘾入骨i 2021-01-29 05:49

As you know Excel only lets you use one lookup value, but I need to compare three lookup values to find a fourth value.

For example in the screenshot below I want to use

2条回答
  •  执笔经年
    2021-01-29 06:03

    Instead of Vlookup(), you can use Index/Match, which is a nice alternative that lets you do this.

    The formula correctly returns "Miss Smith": Note: This is entered as an array formula with CTRL+SHIFT+ENTER

    So, the basic layout of the formula is: =Index([range to return],match([single look up value],[range where that value would be],0))

    You can combine lookup values by concatenating them, as you can see in the screenshot. So, the single lookup values are A2, C2, and D2. And, you'd expect to find "Sarah" in the range G2:G3, "Dog" in H2:H3, etc.

    Please let me know if I can clarify anything.

    Edit: To help visualize the two sheets thing. I put the table (which you will lookup from) on a sheet called "Data Sheet". The table we need to complete is on "Main WS".

    Here's "Main WS":

    and the "Data Sheet":

提交回复
热议问题