对于A1单元格,假设只有一个号码是这样的,如果需要是多个,再补充吧。=IFERROR(IF(DATEVALUE(MID(A1,7,4) &"-" &MID(A1,11,2)&"-"&MID(A1,13,2))>0,""),"生日不对") & IF(VALUE(RIGHT(A1,1))=VALUE(INDEX({1,0,"X",9,8,7,6,5,4,3,2},1+MOD(SUM(MID(A1,1,1)*MID(A1,7,1),MID(A1,2,1)*MID(A1,9,1),MID(A1,3,1)*MID(A1,10,1),MID(A1,4,1)*MID(A1,5,1),MID(A1,5,1)*MID(A1,8,1),MID(A1,6,1)*MID(A1,4,1),MID(A1,7,1)*MID(A1,2,1),MID(A1,8,1)*MID(A1,1,1),MID(A1,9,1)*MID(A1,6,1),MID(A1,10,1)*MID(A1,3,1),MID(A1,11,1)*MID(A1,7,1),MID(A1,12,1)*MID(A1,9,1),MID(A1,13,1)*MID(A1,10,1),MID(A1,14,1)*MID(A1,5,1),MID(A1,15,1)*MID(A1,8,1),MID(A1,16,1)*MID(A1,4,1),MID(A1,17,1)*MID(A1,2,1)),11))),""," 验证码错误") & IF(LEN(A1)<>18," 位数不对","")