计算有多少单元格的数字大于零


0

我有K2,T2,AC2,AL2和AV2,其中包含数字。我想要计算其中有多少大于零。例如,K2为4,T2为17,AC2为0,AL2为3,AV2为6.我希望答案为4,因为5个单元中有4个大于零。我尝试过多个公式,都返回错误。所以如果我使用countif,我的范围是单元格K2,T2,AC2,AL2和AV2,我的标准是> 0我得到一个错误。请帮忙?

Answers:



0

它不漂亮:

=SUM(IF(K2>0,1),IF(T2>0,1),IF(AC2>0,1),IF(AL2>0,1),IF(AV2>0,1))
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.