如果A3单元个存放的是一个18位的身份证号,要在B3单元格用公式计算这个身份证号表示的性别,下列正确的是( )。
A: if(mod(mid(a3,17,1),2=1,"女","男")
B: =if(mod(mid(A3,17,1),2=1,"女","男")
C: if(mod(mid(A3,17,1),2=1,"男","女")
D: =if(mod(mid(a3,17,1),2=0,"女","男")
A: if(mod(mid(a3,17,1),2=1,"女","男")
B: =if(mod(mid(A3,17,1),2=1,"女","男")
C: if(mod(mid(A3,17,1),2=1,"男","女")
D: =if(mod(mid(a3,17,1),2=0,"女","男")
举一反三
- 从18位身份证号码中提取性别,身份证号码第17位数为偶数时表示女性,奇数表示男性。假设A3单元格中存放着18位身份证号,可以使用的公式是()。(1.0) A: =IF(MOD(MID(A3,17,1),2)=1,"女","男") B: =IF(MOD(MID(A3,17,2),2)=1,"男","女") C: =IF(MOD(MID(A3,17,1),2)=0,"男","女") D: =IF(MOD(MID(A3,17,1),2)=1,"男","女")
- 在Sheet1中A2单元格中存放着身份证号码“330101199004213251”,根据身份证号码倒数第二位是奇数的为“男”,是偶数的为“女”,将结果“男”或“女”,存放在B2单元格中。下列B2中哪个公式是正确的()。 A: =IF(MiD(MOD(B3,17,1),2)<>0,""男"",""女"") B: =IF(MOD(MID(B3,17,1),2)<>0,""男"",""女"") C: =IF(MOD(MID(B3,17,1),2)=0,""男"",""女"") D: =IF(MID(MOD(B3,17,1),2)<>0,""男"",""女"")
- 在居民身份登记表中,在M列根据H列的身份证号判断员工的性别(说明:身份证号共18位,身份证号的倒数第二位为此人的性别判断位,若此位为奇数则性别为男,若此位为偶数则性别为女),则在M2单元格应输入公式为() A: ) =IF(MID(MOD(H2.17,1),2)=0,女,男) B: ) =IF(MID(MOD(H2.17,1),2)=1,女,男) C: ) =IF(MOD(MID(H2.17,1),2)=0,女,男) D: ) =IF(MOD(MID(H2.17,1),2)=1,女,男)
- 在Excel工作表A1单元格里存放了18位二代身份证号码,判断其性别的公式书写正确的是 A: =IF(MOD(MID(A1,17,1),2),“男”,“女”) B: =IF(MOD(MID(A1,17,1),2),"男","女") C: =IF(MOD(MID(A1,17,1,2,"男","女") D: =IF(MOD(MID(A1,17,1),2,"男","女")
- MOD(-13,-3)与MOD(13,-3)的正确结果是 A: -1,-2 B: -1,-1 C: -2,-1 D: -2,-2