470038841 发表于 2012-5-17 10:55
紧急求助附件
全部是数组公式——
J2公式:
- =SUM(--(MOD(MID(IF(LEN(A2:I2)<15,REPT(1,15),A2:I2),15,3),2)=0))
复制代码
K2公式:
- =SUM(--IFERROR(DATEDIF(TEXT(MID(A2:I2,7,LEN(A2:I2)/2-1),"0-##-##"),TODAY(),"y")<=18,0))
复制代码 如果用Excel2003,那么公式修改为——
- =SUM(--IF(ISERROR(DATEDIF(TEXT(MID(A2:I2,7,LEN(A2:I2)/2-1),"0-##-##"),TODAY(),"y")<=18),0,DATEDIF(TEXT(MID(A2:I2,7,LEN(A2:I2)/2-1),"0-##-##"),TODAY(),"y")<=18))
复制代码
L2公式:
- =SUM(--IFERROR(DATEDIF(TEXT(MID(A2:I2,7,LEN(A2:I2)/2-1),"0-##-##"),TODAY(),"y")>18,0))
复制代码 同样,如果使用的是Excel2003,那么修改公式为——
- =SUM(--IF(ISERROR(DATEDIF(TEXT(MID(A2:I2,7,LEN(A2:I2)/2-1),"0-##-##"),TODAY(),"y")>18),0,DATEDIF(TEXT(MID(A2:I2,7,LEN(A2:I2)/2-1),"0-##-##"),TODAY(),"y")>18))
复制代码 |