使用分离列的表查找 [英] Lookup using table with separated columns

查看:86
本文介绍了使用分离列的表查找的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用不相邻的列组成的表输入 VLOOKUP()

I would like to use VLOOKUP() using a table input consisting of columns that are not next to each other.

示例

MyCell = VLOOKUP(A1, MyTable, 2, FALSE)
MyTable = B1:B10 and D1:D10

有没有办法使用查找函数或任何其他工作表函数进行此操作?现在我收到一个错误。

Is there a way of making this operation work using a lookup function or any other worksheet function? Now I get an error.

提前感谢

编辑:
这是因为表非常大,如果我使用整个表作为输入,恐怕操作会减慢应用

推荐答案

=INDEX(D1:D10,match(A1,B1:B10,0))

索引/匹配通常比vlookup更高效。如果你真的想要使用这些列的VLOOKUP,你可以使用

index/match is typically more efficient than vlookup anyway. if you really want VLOOKUP for just those columns you can use

=VLOOKUP(A1,CHOOSE({1,2},B1:B10,D1:D10),2,FALSE)

这篇关于使用分离列的表查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆