excel函数公式应用:从身份证号码中提取出性别的函数公式
=IF(MOD(MID(A1,15,3),2),"男","女") (最简单公式)
=IF(MOD(RIGHT(LEFT(A1,17)),2),"男","女")
=IF(A2<>” ”,IF(MOD(RIGHT(LEFT(A2,17)),2),”男”,”女”),)
=IF(VALUE(LEN(ROUND(RIGHT(A1,1)/2,2)))=1,"男","女")
excel函数公式应用:从身份证号码中提取出性别的函数公式
=IF(MOD(MID(A1,15,3),2),"男","女") (最简单公式)
=IF(MOD(RIGHT(LEFT(A1,17)),2),"男","女")
=IF(A2<>” ”,IF(MOD(RIGHT(LEFT(A2,17)),2),”男”,”女”),)
=IF(VALUE(LEN(ROUND(RIGHT(A1,1)/2,2)))=1,"男","女")