excel表格怎么根据身份证号码批量填写籍贯?
时间:1970-01-01 | 作者:网络 | 阅读:227身份证号码都是唯一的,新二代身份证号码为18位,前6位为籍贯。这里我们来讲下,利用vlookup 来批量填写籍贯
1、首先先下载各个地区籍贯前6位代号的集合,这个在百度里面搜索下都有的下载的。这里里面不能加链接,这里就不添加了。

2、然后我们把刚刚下载的表里面的数据拷贝到你需要添加籍贯的表中“Sheet2”。“sheet1”为需要填写籍贯的。


3、现在两张表格都在一张表中了。现在就来讲讲公式怎么用。把鼠标放到要“籍贯”那一栏,点击“插入函数”。

4、找到“vlookup”函数,点击确定。会跳出函数参数,我们这里不管,什么都不填,直接点击确定,然后有跳出提示,也点击确定。这样我们的文本框里面就出现了函数“vlookup”



5、最后我们来输入公式,查找对应的籍贯。“=VLOOKUP(LEFT(C3,6),Sheet2!$A$1:$B$6457,2,0)”
这里来解释下。都代表了什么意思。
LEFT(C3,6),是表示取第C列第3行前6位的数字。如,现在我们表中”白悦“身份证号码就在第C列第3行。
Sheet2!,是表示取“Sheet2”里面的值。
$A$1:$B$6457,是表示取“Sheet2”有数值的单元格。$为绝对值。
2,是表示要取值的列数。
0,是表示比对要”绝对匹配“。
输入完之后,敲回车就好了。


6、现在我们已经输入好一个公式了。接下来的所有人的籍贯也就简单多了。只要把鼠标放在刚刚那个输入好的公式文本框右下角,鼠标变成黑十字架,双击鼠标左键。这样下面所有人的籍贯就都出来了

注意事项:这个两张表一定要在同一个excel文件内,输入公式的那一栏的,单元格格式一定为常规。
福利游戏
相关文章
更多-
- Excel自动生成目录详细操作步骤
- 时间:2024-12-19
-
- Excel筛选特定内容具体操作流程
- 时间:2024-12-19
-
- Excel输入的负数变成红色括号具体操作流程
- 时间:2024-12-19
-
- Excel按月份升序排列具体操作教程
- 时间:2024-12-19
-
- Excel按批注定位具体操作方式
- 时间:2024-12-19
-
- Excel自动填充固定值具体操作步骤
- 时间:2024-12-17
-
- excel格式刷怎么快速刷全部
- 时间:2024-02-02
-
- 合并单元格后怎么拆分单元格
- 时间:2024-02-02
精选合集
更多大家都在玩
大家都在看
更多-
- FS社与索尼因《恶魔之魂》产生矛盾 索尼:我后悔了
- 时间:2025-02-20
-
- 《我的世界》真人电影新剧照放出 方块才是世界
- 时间:2025-02-20
-
- 鸣潮水手的遗藏怎么完成
- 时间:2025-02-20
-
- 《消逝的光芒》玩家数已突破4500万 官方感谢玩家支持
- 时间:2025-02-20
-
- 黑曜石《宣誓》发布后Steam欧美多国热销榜登顶
- 时间:2025-02-20
-
- 行业资深媒体锐评《宝可梦GO》被出售 今后发展动向预测
- 时间:2025-02-20
-
- 经典地牢探险游戏重制版《命运:再度觉醒》发售日公布 2025年3月13日正式推出
- 时间:2025-02-20
-
- 《失落之魂》发布最新中文配音预告 5月30日发售
- 时间:2025-02-20