Vlookup 是用来纵向查找的函数,在日常工作中,学会vlookup可以大大加快工作效率。现实中,真的还有人在一个个核对,一张又一张表的筛选对数据,简直麻烦得要死,赶紧学一下VLOOKUP的用法吧!
vlookup基本用法:

vlookup 从左到右(正向查询)

vlookup从左到右是一种"多对一"的查找关系,找好对应的4个参数即可。


上图结果表:只给酒店名称列,后面数据均是由vlookup+ 链接所得,接下来就将以下vlookup的几种用法。
1.vlookup 从右到左(反向查找)

上图中OYO_ID1是由vlookup+数组公式进行反向查找的,其中 IF({1,0},CM为正!$B:$B,CM为正!$A:$A) 是将CM为正这个表里的B列和A列位置调换,调整成我们期望的位置:从左到右。注意,使用数组,不能直接按回车,要用Ctrl+shift+enter,否则会出错。

OYO_ID2 是用index+match 来反向查询的,先用match函数找到酒店名称在CM为正表中的位置,再用index索引其ID。使用这种方法个人觉得比使用数组简单些,但需要会使用index和match函数,我就不详细介绍了。

PC Date,AMG Target, VMG Target这3列是使用的 vlookup+column,返回多列数据时 ,就是用vlookup+column 结合,高效,不用一遍又一遍的输入公式,节省时间。

SRNs,CM, Zone,city,hub这5列是使用vlookup+match结合,公式较复杂的时候,注意混合引用的问题,以免下拉右拉时出错。

vlookup+数组可实现多条件查询,将检索关键字使用&连接起来,查找范围使用了数组公式,其中IF的第二个参数为检索关键字序列的拼接。注意使用数组时不能只按回车,要Ctrl+shift+enter
好啦,Vlookup就先到这里了。 AoEliauk
网友评论