search
HomeTopicsexcelHow to extract age from ID number
How to extract age from ID numberApr 17, 2020 am 09:53 AM
ageidentification number

How to extract age from ID number

Method to extract age from ID number

The first step is to put the person’s ID number in The same column of the spreadsheet and create the corresponding header.

The second step is to use Excel functions to generate data. First, create a function at the corresponding position of the first person.

Generate real-time updated age. As shown in the picture, enter "=YEAR(TODAY())-MID(B2,7,4)" in cell C3 (enter the content in the quotation marks, no quotation marks are required, the same below). Note that the first two alphanumeric characters in the parentheses after the MID point to the cell where the ID card is located, so no mistakes can be made.

After completion, press Enter to generate the age, and the age calculated in this way will be automatically updated according to the date. If it is opened next year, it will be updated to next year's age.

How to extract age from ID number

The above is the detailed content of How to extract age from ID number. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
陌陌怎么设置年龄筛选 设置年龄筛选的方法陌陌怎么设置年龄筛选 设置年龄筛选的方法Mar 12, 2024 am 11:28 AM

  陌陌app软件内提供的所有社交信息都是最真实的,不用担心会被骗的。全国各地的单身男女用户在这里聚集,想聊就聊完全不会受到干扰,营造十分舒适的聊天氛围。输入手机号在线登录,平台根据大家的社交需求精准匹配,不同风格类型的小哥哥小姐姐等你来撩,视频语音通话、文字聊天都是免费的,还能通过设置年龄,来找到与自己年龄相仿的异性好友,互相关注了解更多信息,拉近距离让你不再是一个人了,也能帮助更多人脱单,热度非常高,现在小编在线详细为陌陌伙伴们带来设置年龄筛选的方法。  1、点击陌陌软件进入。  2、进入到

如何使用Python正则表达式进行身份证号码提取如何使用Python正则表达式进行身份证号码提取Jun 22, 2023 am 10:35 AM

在数据处理的过程中,经常需要从文本中提取特定格式的信息。而身份证号码作为一种比较常见的个人信息,在数据处理中也经常被用到。使用Python正则表达式可以方便地提取身份证号码,并且还能对其进行一定的验证。身份证号码是由18位数字组成的,包含了身份证号码中的地区、出生年月日和校验码等信息。在Python中,我们可以使用re模块的正则表达式函数来提取身份证号码。首

PHP正则表达式验证输入字符串是否为身份证号码或护照号码格式PHP正则表达式验证输入字符串是否为身份证号码或护照号码格式Jun 24, 2023 pm 12:11 PM

身份证号码和护照号码是人们生活中常见的证件号码。在实现涉及到这些证件号码的功能时,经常需要对输入的号码进行格式验证,以确保其正确性。而在PHP中,使用正则表达式可以很好地实现这一功能,本文就介绍如何使用PHP正则表达式验证输入字符串是否为身份证号码或护照号码格式。一、身份证号码验证身份证号码是由18位数字和最后一位可能是字母(校验码)组成的,其格式如下:前6

PHP正则表达式验证身份证号码的生日信息PHP正则表达式验证身份证号码的生日信息Jun 24, 2023 pm 02:22 PM

身份证号码是我们日常生活中经常用到的一种身份证明工具,而其中包含的生日信息也是非常重要的。在使用PHP进行身份证号码验证时,我们常常需要判断其生日信息是否正确。本文将介绍如何使用PHP正则表达式验证身份证号码的生日信息。1、身份证号码的基本格式身份证号码是由18位数字和字母组成的字符串,其中最后一位可能是数字或者字母,可能是大写或者小写。前17位是身份证的主

如何用PHP正则表达式验证输入字符串是否为正确的身份证号码、护照号码或港澳通行证格式如何用PHP正则表达式验证输入字符串是否为正确的身份证号码、护照号码或港澳通行证格式Jun 24, 2023 am 10:36 AM

身份证、护照和港澳通行证号码都是重要的个人身份证明,为了保障个人信息安全,我们需要在系统中验证用户输入的证件号码是否符合规范格式。而PHP正则表达式是一个非常强大的工具,可以方便地实现这个目的。本文将介绍如何使用PHP正则表达式验证用户输入的身份证号码、护照号码和港澳通行证号码。一、身份证号码格式验证身份证号码是18位数字,在最后一位可能是数字或字母X。身份

学编程什么年龄最适合?学编程什么年龄最适合?Sep 27, 2022 pm 02:49 PM

学编程任何年龄都适合,没有年龄限制。学编程什么年龄都可以学,都适合学,无论你是零基础还是有基础,只要选对合适的编程课程,不管什么年龄都能学会;想做的事情就去做,不要因为过多的担忧而放弃改变,否则错失机会,只会导致更多遗憾。

excel年龄怎么计算excel年龄怎么计算Mar 21, 2024 am 09:41 AM

在使用excel办公软件的时候,经常需要使用到公式函数,比如,我们在制作员工花名册的时候,经常输入员工的出生日期,这时候,我们就可以根据出生日期来计算出员工的年龄,那么,excel年龄如何进行计算呢?下边,我们就一起来计算试试看吧!1、首先,我们新建并打开一个excel表格,随意输入几个信息,便于演示操作。2、我们在出生日期的后边一列计算年龄,用鼠标选中年龄这一列,鼠标单击右键,选择“设置单元格格式”,在弹出的对话框中将分类设置为“数值”,小数位数设置为“0”。3、在年龄列的c2单元格中输入公式

PHP正则表达式验证身份证号码的有效性和性别的方法PHP正则表达式验证身份证号码的有效性和性别的方法Jun 24, 2023 am 09:36 AM

身份证号码是我国居民身份识别的重要标志,它可以在很多场合进行身份验证。在应用中,为了确保身份证号码的有效性及准确性,需要对其进行正则表达式验证。本文将介绍如何使用PHP正则表达式验证身份证号码的有效性和性别。一、身份证号码的组成及规则身份证号码是由18位数字或17位数字加1位校验码组成的。其中,前17位代表身份证持有人的信息,后1位代表校验码,用于验证身份证

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!