
我们经常会遇到这样的需求:在一个数据比较多的数据表里,想统计某些符合条件的数据。例如,一个员工信息表里保存着大量员工的数据(比如有1000个员工),现在想找出其中的200个员工的工号。遇到这样的需求,如果手动一个一个去查找,就太费劲了。本文演示如何用函数VLOOKUP轻松搞定这样的需求。
1. 新建一个Excel文件,添加一些员工信息

现在的需求是在左侧数据中找出右侧三个员工的工号。
2. 使用函数VLOOKUP
- 光标定位到需要填充的工号位置
- 点击 公式-插入函数-选择VLOOKUP-确定

- 光标定位到 Lookup_value,点击右侧张三的单元格,自动填充为G2,即需要搜索张三的数据
- 光标定位到 Table_array,选择A列和B列,即需要在A列和B列中查找数据
- Col_index_num,填写2,即指定搜到的结果位于第2列(在A、B列中位于第2列)
- Range_looku填写0表示精确匹配,1表示模糊匹配,这里填写0精确匹配
- 点击确定,得到张三的工号数据


3. 填充整个结果
- 将右侧张三的工号数据选择下来,批量填充剩下的数据,得到最终结果

还是很简单吧,赶紧也来试一试!
网友评论