VLOOKUP alternative using three lookup values

巧了我就是萌 提交于 2019-12-02 08:34:49

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":

Given the cyclic calulation and disregard for the Worksheet.UsedRange property that the AGGREGATE function exhibits, you will want to cut down the ranges for the lookups to the minimmum required. Pick a column that will typically determine the extent of the lookup range and use that to define the end point of each lookup column.

Sheet2:

        

Sheet1:

        

The formula in Sheet1!E2 is,

        

Fill down as necessary.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!