比如D6填的是身份证号'51....
=IF(D6="","",(IF(MID("10X98765432",MOD(SUMPRODUCT(MID(D6,ROW(INDIRECT("1:17")),1)*2^(18-ROW(INDIRECT("1:17")))),11)+1,1)=MID(D6,18,18),"正确","错误")))