如何使用EXCEL软件中的函数 判断数字中的某位数是奇数 还是偶数 并且依据结果输出相应的判断

2024-11-27 08:19:51
推荐回答(3个)
回答1:

假设A1中是学号,在B1中输入如下公式:
=if(mod(mid(A1,4,1),2)=1,"男","女")

回答2:

A1 = 123456
B1=IF(ISODD(LEFT(A1,4)),"男","女")
或者B1=IF(ISODD(MID(A1,4,1)),"男","女")

回答3:

=IF(MOD(MID(A1,4,1),2),"男","女")