一般要用SUM来配合设置多组条件:例如:求A1:A30范围内,数值等于255和331的个数。=SUM(COUNTIF(A1:A20,{"=255","=331"})*{1,1})求A1:A30范围内,数值大于255小于331的个数=SUM(COUNTIF(A1:A20,{">255",">=331"})*{1,-1})求A1:A30范围内,数值小于255和大于或等于331的个数=SUM(COUNTIF(A1:A20,{"<255",">=331"})*{1,1})