COUNTIFS(A2:A21,">80",A2:A21,"<90")
07版可以用countifs。用法类似,查一下函数帮助。
03版的可以用sumproduct多条件计数。
=sumproduct((a1:a100>80)*(a1:a100<90))
countif(a1:a5,">80")-countif(a1:a5,">=90")
假如你的数据在A1:A100
=COUNTIF(A1:A100,">80:")-COUNTIF(A1:A100,">90")
可以使用sumproduct函数
=SUMPRODUCT((A1:A100>80)*(A1:A100<90)*1)