1
第17位数字表示性别:奇数表示男性,偶数表示女性;
if(mid('身份证号码',17,1)%2==0,"女","男")
有这个还难么?
mid()函数
-------
IF(LEN(A1)==15,IF(mid(A1,15,1)%2==0,"女","男"), IF(LEN(A1)==18,IF(mid(A1,17,1)%2==0,"女","男"),"不合法"))
if(len(A3)=17,IF(MID(A3,17,1)%2=0,"女","男"),IF(MID(A3,15,1)%2=0,"女","男"))