Excel函数教程 通过身份证号识别性别
时间:2023-04-14 04:52:14
下面就开始我们今天的教程:
①我们启动Excel,在单元格中输入姓名,身份证号码,以及性别,我们要根据身份证号码求得其性别,在性别列中输入下面的公式,稍后有公式说明,便于大家理解。
②公式输入完之后按下Enter键,结果为男,我们看看,身份证是15位的,那么就该看最后1位数,3,奇数,是男性。
③鼠标移动到该单元格右下角,出现+号,双击,自动填充完单元格,对照一下,结果全部正确。
公式说明
left(B2,17)将18位身份证号码的前17位提取出来,如果是15位身份证号码就直接提取15位,right(left(B2,17),1)的意思是将left函数提取出来的数的最后一位数提取出来,然后在用mod函数将right函数提取出来的最后一位数除以2,如果是奇数,除以2得出来的余数就一定是1,偶数得出来的余数一定是0.因为1=true,0=false,这样,在用if函数来返回指定的男女值就能实现通过身份证号码判断性别。
标签:Excel函数教程,通过身份证号识别性别
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
WPS2010秘技之客串图片处理软件
2023-06-27 15:35:46
![](https://img.aspxhome.com/file/2023/7/a165197_0s.png)
word中Logo替换 竟这么简单
2023-04-17 08:55:50
![](https://img.aspxhome.com/file/2023/7/33797_0s.png)
Win7系统怎么解除限制网速?Win7系统解除限制网速的方法
2023-10-03 03:10:26
![](https://img.aspxhome.com/file/2023/27/a230232_0s.jpg)
PPT如何进行图形对齐?PPT图形对齐的方法
2022-05-23 18:39:20
![](https://img.aspxhome.com/file/2023/10/a350298_0s.jpg)
word 行距无法缩小,这是什么原因?怎样解决?
2022-06-16 12:57:34
![](https://img.aspxhome.com/file/2023/8/35648_0s.png)
台式电脑组装之前需要考虑哪些硬件的兼容性问题?
2023-02-17 09:33:14
![](https://img.aspxhome.com/file/2023/6/a326189_0s.jpg)
Win10 1909电脑怎么关闭自带杀毒软件Windows Defender?
2022-04-24 09:56:06
![](https://img.aspxhome.com/file/2023/1/a279257_0s.png)
excel建立常用文档新菜单
2022-08-14 14:19:02
Win10连接共享打印机失败错误代码0x00000040怎么办?
2023-04-17 09:01:33
![](https://img.aspxhome.com/file/2023/26/a219357_0s.png)
Win7系统隐藏NVIDIA托盘图标的方法
2022-11-02 04:41:52
![](https://img.aspxhome.com/file/2023/27/a230936_0s.jpg)
微软最新Win11 KB5011493(22000.556)补丁发布!
2022-02-19 22:41:26
![](https://img.aspxhome.com/file/2023/1/a275557_0s.jpg)
excel数据分析技巧
2022-04-12 02:44:38
Win10弹出“microsoft visual c++ runtime library”错误窗口怎
2022-08-26 23:30:34
![](https://img.aspxhome.com/file/2023/5/a316479_0s.jpg)
如何设置钉钉拍照打卡功能 钉钉拍照打卡功能的设置方法
2022-06-13 20:49:51
Win7如何开启Aero特效?Win7开启Aero效果的三个方法
2022-04-12 11:21:46
![](https://img.aspxhome.com/file/2023/26/a227891_0s.jpg)
Excel累加.叠加的计算方法
2022-06-05 09:17:11
![](https://img.aspxhome.com/file/2023/9/38649_0s.gif)
word 打印技巧篇,办公必备
2023-03-24 03:33:24
![](https://img.aspxhome.com/file/2023/2/35742_0s.jpg)
空u盘怎么制作u盘启动盘?系统之家u盘启动盘制作教程
2022-03-31 10:26:30
![](https://img.aspxhome.com/file/2023/30/a271536_0s.png)
电脑如何利用快捷键打开任意应用程序
2022-08-17 13:19:10
![](https://img.aspxhome.com/file/2023/9/a342573_0s.png)
Win10搜索不到工作组计算机要怎么解决?
2023-11-14 02:23:05
![](https://img.aspxhome.com/file/2023/0/49110_0s.png)