假如A列是身份证号,B列设置校验,那么B2单元格可以输入公式=IF(LEN(A2)18,"--",TEXT(--(RIGHT(A2)=MID("10X98765432",MOD(SUMPRODUCT(MID(A2,ROW($1:$17),1)*2^(18-ROW($1:$17))),11)+1,1)),"[=1]√;×"))即可。见下图:
假如A列是身份证号,B列设置校验,那么B2单元格可以输入公式=IF(LEN(A2)18,"--",TEXT(--(RIGHT(A2)=MID("10X98765432",MOD(SUMPRODUCT(MID(A2,ROW($1:$17),1)*2^(18-ROW($1:$17))),11)+1,1)),"[=1]√;×"))即可。见下图: