Excel身份证号码转出生日期的公式
时间:2023-06-19 06:28:42
文章介绍excel中通过身份证号码转出生日期的方法,并需要设置单元格格式为日期格式才能完成身份证号码转出生日期。
对于做人事的朋友来说,会经常使用到在Excel中根据身份证号码转出生日期。
如下图所示,通过A列的身份证号码,在B列转出生日期,如何操作呢。
我们在B2单元格输入公式:=–TEXT(MID(A2,7,11)-500,"0-00-00,"),同时将B2单元格格式设置为“日期”格式,就可以转换到对应的出生日期。
上面这个通过身份证号码转出生日期的公式理解如下:
因为用TEXT函数得来的日期为文本型日期,不便于下一步计算使用,“–”的作用等同于VALUE()函数,强制转换为日期序列数,除了“–”以外,还可以用+0、-0、/1、*1等方法。
公式=–"1996-05-21" 这是一个日期序列数,需要通过单元格格式设置为日期格式,才能得到1996-5-21这样的出生日期。
另外公式中-500,起到四舍五入的作用。
标签:公式,日期,身份证号码,转出,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win7系统如何快速切换用户?
2022-10-17 11:26:02
![](https://img.aspxhome.com/file/2023/26/a228537_0s.png)
Win10流氓软件正在运行无法删除怎么办?流氓软件无法删除解决方法
2023-11-10 03:50:56
![](https://img.aspxhome.com/file/2023/26/a220396_0s.png)
MATCH函数的几个使用技巧
2023-03-12 01:59:56
![](https://img.aspxhome.com/file/2023/6/a142546_0s.jpg)
UEFI怎么装Win7系统?uefi安装win7系统图解
2022-11-27 08:44:18
![](https://img.aspxhome.com/file/2023/5/a318716_0s.jpg)
怎么制作word空文本标题
2022-11-27 22:30:44
![](https://img.aspxhome.com/file/2023/7/a167507_0s.jpg)
教你win11怎么退回win10系统?升级完win11怎么退回win10?
2023-04-18 18:01:33
![](https://img.aspxhome.com/file/2023/25/a218897_0s.jpg)
Win10最新预览版10125官方镜像下载地址泄漏(英文版)
2023-03-11 02:34:55
![](https://img.aspxhome.com/file/2023/28/a250087_0s.png)
Mac基础知识分享:Mac上好用的快速查看功能
2023-03-01 16:00:26
![](https://img.aspxhome.com/file/2023/8/a204378_0s.jpeg)
excel 统计个数可以使用状态栏、函数公式、数据透视表完成
2023-07-21 07:53:01
![](https://img.aspxhome.com/file/2023/3/a162833_0s.gif)
WPS word如何输入复杂生僻字
2022-07-18 03:31:00
![](https://img.aspxhome.com/file/2023/3/a186763_0s.jpg)
如何使用爱奇艺万能播放器制作GIF图?
2022-06-11 07:37:37
夜神安卓模拟器怎么安装?夜神安卓模拟器安装方法
2022-01-28 20:41:34
![](https://img.aspxhome.com/file/2023/8/a336711_0s.jpg)
如何在Excel单元格中快速输入“√ 勾”?
2023-10-16 20:37:38
![](https://img.aspxhome.com/file/2023/7/a155587_0s.jpg)
WPS2019表格怎么实现数据前自动加货币符号?
2023-04-10 22:04:44
![](https://img.aspxhome.com/file/2023/8/a165938_0s.jpg)
iOS12正式版适合哪些设备更新?iOS12正式版值得更新吗?
2022-04-14 03:15:25
![](https://img.aspxhome.com/file/2023/2/a199572_0s.jpg)
告诉你炫龙笔记本密码忘了怎么办
2022-06-28 14:59:54
![](https://img.aspxhome.com/file/2023/1/a277140_0s.png)
微软为什么不提前公布下个Win10 Mobile/PC预览版的推送时间?
2022-07-30 01:33:02
![](https://img.aspxhome.com/file/2023/28/a248030_0s.jpg)
如何在Mitti中设置Matrox Dual / TripleHead2Go?
2022-05-30 03:45:30
![](https://img.aspxhome.com/file/2023/4/a212474_0s.png)
Win10电脑怎么快速的清理电脑无用的垃圾?
2022-01-20 10:06:16
![](https://img.aspxhome.com/file/2023/26/a220844_0s.png)
Win10蓝屏提示memorymanagement怎么办?Win10蓝屏提示memorymanagement的解决方法
2022-01-21 20:14:27
![](https://img.aspxhome.com/file/2023/26/a220014_0s.jpg)