好了,身份证号也有规则的与名字对应复制到表格内了,但是身份证号明晃晃的就展示在屏幕上,对个人信息安全的保护并不到位,我们能不能隐藏其中几位呢?
在身份证号码的后面一列点击空格,在公式处输入=REPLACE(B1,LEN(B1)-5,4,"****")并回车看看,是不是后面有几位被隐藏起来了?善用好这个函数公式,手机号码也可以部分隐藏哦,小编就不讲解那么细了,自己试试看~。
不知道大家注意到没有,其实我们这个表格里有一个身份证号码是错误的,数量少还好说,一眼就能看到,但是如果太多了,那怎么才能通过Excel自动判断出来究竟哪个身份证号码有错误呢?在刚刚隐藏身份证那列和身份证号列中间插入一个新的列,然后输入一个超~~~~~~~~长公式(老规矩,登录微信PC版本,点击查看历史消息找到本文复制哦),身份证号只要输错一位、少输一位,就可以通过这个公式判断出来了。
=IF(LEN(B1)=18,IF(RIGHT(B1,1)="X",IF(CHOOSE(MOD(SUM(LEFT(RIGHT(B1,18))*7
+LEFT(RIGHT(B1,17))*9+LEFT(RIGHT(B1,16))*10+LEFT(RIGHT(B1,15))*5+LEFT(RIGHT(B1,14))*8
+LEFT(RIGHT(B1,13))*4+LEFT(RIGHT(B1,12))*2+LEFT(RIGHT(B1,11))*1+LEFT(RIGHT(B1,10))*6
+LEFT(RIGHT(B1,9))*3+LEFT(RIGHT(B1,8))*7+LEFT(RIGHT(B1,7))*9+LEFT(RIGHT(B1,6))*10
+LEFT(RIGHT(B1,5))*5+LEFT(RIGHT(B1,4))*8+LEFT(RIGHT(B1,3))*4+LEFT(RIGHT(B1,2))*2),11)
+1,1,0,"X",9,8,7,6,5,4,3,2)=LEFT(RIGHT(B1,1)),"正确!","出错啦!"),
IF(CHOOSE(MOD(SUM(LEFT(RIGHT(B1,18))*7+LEFT(RIGHT(B1,17))*9+LEFT(RIGHT(B1,16))*10
+LEFT(RIGHT(B1,15))*5+LEFT(RIGHT(B1,14))*8+LEFT(RIGHT(B1,13))*4+LEFT(RIGHT(B1,12))*2
+LEFT(RIGHT(B1,11))*1+LEFT(RIGHT(B1,10))*6+LEFT(RIGHT(B1,9))*3+LEFT(RIGHT(B1,8))*7
+LEFT(RIGHT(B1,7))*9+LEFT(RIGHT(B1,6))*10+LEFT(RIGHT(B1,5))*5+LEFT(RIGHT(B1,4))*8
+LEFT(RIGHT(B1,3))*4+LEFT(RIGHT(B1,2))*2),11)+1,1,0,"X",9,8,7,6,5,4,3,2)
=LEFT(RIGHT(B1,1))*1,"正确!","出错啦!")),IF(LEN(B1)=15,"老号,请注意!",
IF(LEN(B1)=0,"缺号码","位数不对!")))
通过这一系列组合拳,不仅解决了录入繁琐的问题,还能充分保障个人信息安全,并且还具备校验功能,怎么样,你还不快试试?顺便提一句,本文中的公式稍加改造,就可以适用于手机号码哦!