首先我们来了解一下INDEX函数和MATCH函数
INDEX(数据,N)表示取数据的第N个
例如,我们在E2单元格中输入一个公式:
=INDEX(E:E,5),它表示返回E列中的第5个数据,即为坦克

MATCH函数
MATCH(查找值,查找区域,查找方式)
例如,我们在H3单元格中输入公式:
=MATCH(G3,B:B,0),表示查找G3单元格的值,在B列中是第几个,最后一个参数为0表示精确查找

也就是说程咬金在B列中的数据在第5位。
这两个函数INDEX+MATCH搭配起来就无敌了,查找匹配超级方便,例如,我们现在需要根据英雄来查找它的定位

那么我们首先找出英雄对应在英雄列的第几个,所以用MATCH函数:

小乔在第7个,程咬金在第5个,然后我们再用INDEX函数取我们需要列对应的这些序号就可以了,我们现在要得到的结果是定位,所以,我们使用:
=INDEX(E:E,MATCH(G2,B:B,0))

所以用这个公式,有一个万能公式:

这个比VLOOKUP函数还好用,因为VLOOKUP函数只能从左向右查找,而这个函数没有左右的限制,如果我们现在要根据英雄查找编号的话,用VLOOKUP无法实现,用index+match也是轻松实现,输入公式:

是不是非常好用,自己动手试试吧~欢迎留言讨论~