excel中根据身份证号计算性别和年龄

2024-11-28 08:46:03
推荐回答(1个)
回答1:

年龄:
=DATEDIF(TEXT(MID(A1,7,8),"0-00-00"),TODAY(),"Y")
性别:
=IF(MOD(MID(A1,17,1),2),"男","女")