如何统计个数,条件同时and和or
=SUMPRODUCT(COUNTIF(F4:F5,C5:C15)*(1-COUNTIF(G4:G5,D5:D15)))=COUNT((MMULT(N(COUNTIF(F4:G5,C5:D15)={1,0}),{1;1})=2)^0)
=SUM(COUNTIFS(C:C,{"A";"D"},D:D,{"它","他","*"})*{-1,-1,1})
禁用COUNTIF=SUM(MMULT(N(C5:C15={"A","D"}),{1;1})*(1-MMULT(N(D5:D15={"它","他"}),{1;1}))) 太牛逼了,非常感谢。 =SUM((($C$5:$C$15=F4)+($C$5:$C$15=F5))*((($D$5:$D$15<>G4)*($D$5:$D$15<>G5))))只用sum
=COUNTA(FILTERXML("<a>"&CONCAT("<b c='"&C5:C15&"'"&" d='"&D5:D15&"'/>")&"</a>","//*/@*"))/2
=COUNTA(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",,C5:C15&D5:D15)&"</b></a>","//b"))
借题练一下xpath。 =SUM(IF((($F$4=C5:C15)*(G4<>D5:D15)+($F$5=C5:C15)*($G$5<>D5:D15)),1,0))
补充内容 (2021-12-27 09:20):
="包含“"&F4&"”不包含“"&G4&"” 共有"&SUM(IF((F4=$C$5:$C$15)*(G4<>$D$5:$D$15),1,0))&"个"
使用以上公式,可以实现很好的提示效果。
页:
[1]