如何在文档中提取身份证的性别信息
<p><span style="font-size: 16px;"></span></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;background:rgb(255,255,255)"><span style="color: rgb(34, 34, 38); letter-spacing: 0px; font-size: 16px; font-family: 微软雅黑;">首先我们需要知道二代身份证号各数字的含义,二代居民身份证号码为18位数。</span></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;background:rgb(255,255,255)"><span style="color: rgb(34, 34, 38); letter-spacing: 0px; font-size: 16px; font-family: 微软雅黑;">身份证号码开头6位是地区代号,顺位第7-14位数字代表的是出生年月日。</span></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;background:rgb(255,255,255)"><span style="color: rgb(34, 34, 38); letter-spacing: 0px; font-size: 16px; font-family: 微软雅黑;">顺位第15-16位数字表示所在地派出所的代码。</span></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;background:rgb(255,255,255)"><span style="color: rgb(34, 34, 38); letter-spacing: 0px; font-size: 16px; font-family: 微软雅黑;">顺位第17位数字代表性别,男性为奇数,女性为偶数。</span></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;background:rgb(255,255,255)"><span style="color: rgb(34, 34, 38); letter-spacing: 0px; font-size: 16px; font-family: 微软雅黑;">顺位第18位数字表示校验码一般由计算机随机产生来检验身份证的正确性。</span></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;text-indent:0;padding:0 0 0 0 ;background:rgb(255,255,255)"><span style="color: rgb(34, 34, 38); letter-spacing: 0px; font-size: 16px; font-family: 微软雅黑;"><br></span></p><p><span style="font-size: 16px;">第一步:首先将文档中的信息转为表格。</span></p><p><span style="font-size: 16px;">点击</span><span style="font-size: 16px;">「</span><span style="font-size: 16px;">插入</span><span style="font-size: 16px;">」</span><span style="font-size: 16px;">选项卡</span><span style="font-size: 16px;">「表格」</span><span style="font-size: 16px;">-</span><span style="font-size: 16px;">「文字转表格」按钮。将文本内容根据空格转换为</span><span style="font-size: 16px;">2</span><span style="font-size: 16px;">列。</span></p><p><img src="https://res1.wpsacdm.cache.wpscdn.cn/images/1842af6933960cccecfe737378300e00.gif" title="1.gif" alt="1.gif" style="max-width: 800px"></p><p><span style="font-size: 16px;"><br></span></p><p><span style="font-size: 16px;">第二步:新增辅助列。</span></p><p><span style="font-size: 16px;">在身份证号码列旁边新增一列空白列。</span></p><p><span style="font-size: 16px;"> <img src="https://res1.wpsacdm.cache.wpscdn.cn/images/5778b14f680ddb2d224555932ae7be00.gif" title="2.gif" alt="2.gif" style="max-width: 800px"></span></p><p><span style="font-size: 16px;"><br></span></p><p><span style="font-size: 16px;">第三步:使用查找替换功能提取身份证号码的出生信息。</span></p><p><span style="font-size: 16px;">在查找内容中输入({16})({1})({1})</span></p><p><span style="font-size: 16px;">在替换为输入\2</span></p><p><span style="font-size: 16px;">然后点击「高级搜索」,勾选「使用通配符」,最后点击替换。</span></p><p><span style="font-size: 16px;"> <img src="https://res1.wpsacdm.cache.wpscdn.cn/images/04900e60265cb13c5db827c3d6a506a6.gif" title="3.gif" alt="3.gif" style="max-width: 800px"></span></p><p><span style="font-size: 16px;"><br></span></p><p><span style="font-size: 16px;">第四步:输入公式。</span></p><p><span style="font-size: 16px;">点击「表格工具」选项卡下的「公式」按钮</span></p><p><span style="font-size: 16px;">在公式中输入=IF(MOD(SUM(LEFT),2)=0,"女","男")</span></p><p><span style="font-size: 16px;">就可以在文档中提取身份证的性别信息了。</span></p><p><span style="font-size: 16px;"></span><img src="https://res1.wpsacdm.cache.wpscdn.cn/images/beee5ba15826c4708225d0134e9fba4c.gif" title="4.gif" alt="4.gif" style="max-width: 800px"></p><p><br></p>
頁:
[1]