如何简化下面的公式 ?
第一题:
=IF(OR(AND(COUNTIFS(AG:AG,AG2,K:K,"=1")>2,K2=1),AND(COUNTIFS(AG:AG,AG2,L:L,"=1")>2,L2=1),AND(COUNTIFS(AG:AG,AG2,M:M,"=1")>2,M2=1),AND(COUNTIFS(AG:AG,AG2,N:N,"=1")>2,N2=1),,AND(COUNTIFS(AG:AG,AG2,O:O,"=1")>2,O2=1),,AND(COUNTIFS(AG:AG,AG2,P:P,"=1")>2,P2=1),,AND(COUNTIFS(AG:AG,AG2,Q:Q,"=1")>2,Q2=1),,AND(COUNTIFS(AG:AG,AG2,R:R,"=1")>2,R2=1)),1,0)
第二题:
=IF(OR(AND(COUNTIFS(AG:AG,AG2,K:K,"=1")>2,K2=1),AND(COUNTIFS(AG:AG,AG2,L:L,"=1")>2,L2=1),AND(COUNTIFS(AG:AG,AG2,M:M,"=1")>2,M2=1),AND(COUNTIFS(AG:AG,AG2,N:N,"=1")>2,N2=1),AND(COUNTIFS(AG:AG,AG2,O:O,"=1")>2,O2=1),AND(COUNTIFS(AG:AG,AG2,P:P,"=1")>2,P2=1),AND(COUNTIFS(AG:AG,AG2,Q:Q,"=1")>2,Q2=1),AND(COUNTIFS(AG:AG,AG2,R:R,"=1")>2,R2=1),AND(COUNTIFS(AG:AG,AG2,S:S,"=1")>2,S2=1),AND(COUNTIFS(AG:AG,AG2,T:T,"=1")>2,T2=1),AND(COUNTIFS(AG:AG,AG2,U:U,"=1")>2,U2=1),AND(COUNTIFS(AG:AG,AG2,V:V,"=1")>2,V2=1),AND(COUNTIFS(AG:AG,AG2,W:W,"=1")>2,W2=1),AND(COUNTIFS(AG:AG,AG2,X:X,"=1")>2,X2=1),AND(COUNTIFS(AG:AG,AG2,Y:Y,"=1")>2,Y2=1),AND(COUNTIFS(AG:AG,AG2,Z:Z,"=1")>2,Z2=1),AND(COUNTIFS(AG:AG,AG2,AA:AA,"=1")>2,AA2=1),AND(COUNTIFS(AG:AG,AG2,AB:AB,"=1")>2,AB2=1),AND(COUNTIFS(AG:AG,AG2,AC:AC,"=1")>2,AC2=1)),1,0)
效果等同于
{=1*(SUM(N(IF(MMULT(K2:AC2*$K$2:$AC$656,ROW($1:$19)^0)>0,$AG$2:$AG$656)=AG2))>2)}
第三题:
=IF((AND(OR(K2=1,L2=1,M2=1,N2=1,O2=1,P2=1,Q2=1,R2=1,S2=1,T2=1,U2=1,V2=1,W2=1,X2=1,Y2=1,Z2=1,AA2=1,AB2=1,AE2=1),COUNTIF(AG:AG,AG2)>=3)),1,)
等于=(MAX(K2:AE2)>0)*(COUNTIF($AG$2:$AG$646,AG2)>2)
等于{=IF((AND(OR(K2:AE2<>0),COUNTIF(AG:AG,AG2)>=3)),1,)}
等于=SUMPRODUCT(OR(K2:AE2=1)*(IF(COUNTIF(AG:AG,AG2)>2,1,0)))
[ 本帖最后由 shanchuan 于 2010-8-8 23:35 编辑 ] |