Excel中用身份证号算生日:MID函数的用法与技巧
时间:2023-11-04 12:33:32
Excel中用身份证号算生日:MID函数的用法与技巧,MID函数的作用是返回文本字符串中从指定位置开始的特定数目的字符(该数目由用户指定)。Excel中用身份证号算生日:MID函数的用法与技巧,MID函数的作用是返回文本字符串中从指定位置开始的特定数目的字符(该数目由用户指定)。
语法
MID(text,start_num,num_chars)
Text 是包含要提取字符的文本字符串。
Start_num 是文本中要提取的第一个字符的位置。文本中第一个字符的 start_num 为 1,以此类推。
Num_chars 指定希望 MID 从文本中返回字符的个数。
举例来说,如果在单元格中输入“=MID("Computer Fans",1,8) ”,得到的结果就是“Computer”。
在生活中有很多例子可以用到MID函数,最常见的就是单位人员调查表中的通过身份证号码得出生日的例子。
首先在调查表中输入所有人员的身份证号码,注意一定要使用文本类型。
然后在需要显示生日的单元格中输入公式“="19"&MID(A2,7,2)&"年"&MID(A2,9,2)&"月"&MID(A2,11,2)&"日"”,其中A2是指A2单元格中的内容,用户应当根据实际情况进行输入,单击回车键后,生日就自动计算出来了。
标签:身份证号,Excel
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Windows7语言栏不见了如何找回消失的语言栏
2022-02-01 06:20:48
![](https://img.aspxhome.com/file/2023/29/a252394_0s.jpg)
常见的视频文件格式有哪些?不同的视频格式间有哪些区别?
2022-08-12 12:12:52
![](https://img.aspxhome.com/file/2023/6/a326125_0s.jpg)
windows8如何升级Win8.1 Win8.1预览版升级流程截图
2022-06-29 01:53:37
![](https://img.aspxhome.com/file/2023/29/a257185_0s.jpg)
adobe acrobat序列号分享
2023-11-17 16:20:55
![](https://img.aspxhome.com/file/2023/3/a296166_0s.png)
钉钉电脑版怎么发送文件?钉钉电脑版文件发送方法简述
2023-01-09 07:57:07
![](https://img.aspxhome.com/file/2023/7/a330819_0s.jpg)
Win10 1909注册表无法打开怎么办?注册表被管理员禁用解决方法
2023-04-18 13:15:16
![](https://img.aspxhome.com/file/2023/26/a224351_0s.jpg)
Win10专业版蓝屏终止代码video_scheduler怎么修复解决?
2023-04-27 04:05:05
![](https://img.aspxhome.com/file/2023/26/a223208_0s.jpg)
双路由怎么无线连接?TP-Link无线路由器开启WDS桥接的方法
2022-06-11 19:15:33
![](https://img.aspxhome.com/file/2023/27/a231554_0s.jpg)
win10Xbox怎么设置中文_win10Xbox设置中文的教程
2022-11-23 19:40:15
![](https://img.aspxhome.com/file/2023/4/a311194_0s.jpg)
Win10怎么显示文件后缀名?Win10系统显示文件扩展名的方法
2023-09-29 05:39:56
![](https://img.aspxhome.com/file/2023/29/a261322_0s.jpg)
Win10无法快速启动0xC000007B怎么办
2022-11-01 00:31:31
![](https://img.aspxhome.com/file/2023/3/a296379_0s.png)
怎么用大番茄U盘启动盘安装Ghost Win7?
2023-08-20 14:53:48
![](https://img.aspxhome.com/file/2023/1/a281297_0s.jpg)
win10开机出现continue无法开机的解决方法
2023-06-17 01:44:12
![](https://img.aspxhome.com/file/2023/4/a308204_0s.jpg)
win11图标的盾牌怎么取消? win11去掉盾牌图标的详细教程
2023-08-20 05:26:55
![](https://img.aspxhome.com/file/2023/28/a239676_0s.jpg)
Win11内存占用高怎么解决?Win11内存占用高修复方法教程
2022-03-17 05:08:27
![](https://img.aspxhome.com/file/2023/27/a234832_0s.png)
WPS表格使用多条件求和功能来统计考试成绩
2022-12-21 13:28:24
Windows7系统更改关机时显示背景图片的方法
2022-04-29 17:13:32
![](https://img.aspxhome.com/file/2023/2/a287736_0s.jpg)
将商品价格添加到WPS表中时 如何插入相应的货币符号
2022-12-23 04:21:05
![](https://img.aspxhome.com/file/2023/1/a169531_0s.jpg)
excel 快速消除0值 快速输入一个月的日期 加密工作表非常重要 多批量隔行插入行
2022-06-18 01:42:40
![](https://img.aspxhome.com/file/2023/0/a141230_0s.jpg)
刷宝短视频怎么赚钱?刷宝短视频赚钱的方法
2023-09-14 16:03:11
![](https://img.aspxhome.com/file/2023/8/a334514_0s.jpg)