将ABS函数与Countifs一起使用

时间:2019-01-28 12:15:21

标签: excel excel-formula countif

我能够以某种方式在此公式上使用ABS功能!

=SUM(COUNTIFS('Sheet1'!A$2:A$191,{"0*","1*","2*","3*","4*","5*","6*","7*","8*","9*"},'Sheet1'!E$2:E$191,">"&F8))

我尝试了以下操作,但没有用:

=SUM(COUNTIFS('Sheet1'!A$2:A$191,{"0*","1*","2*","3*","4*","5*","6*","7*","8*","9*"},**ABS('Sheet1'!E$2:E$191)**,">"&F8))

我这里缺少什么吗?围绕它尝试了各种策略,但我无法做到。请帮忙。

2 个答案:

答案 0 :(得分:0)

如上所述,COUNTIFS不允许对数据进行操作,在这种情况下,我们可以使用IF在COUNTIFS中简单地添加另一个数组:

dcast(RES3, X + Y + dummy ~ band,
         fun.aggregate = length,
         value.var="reflec")

答案 1 :(得分:0)

在任何人都想引用它们的情况下,这两种方法都有效:

= SUM(COUNTIFS('Sheet1'!A $ 2:A $ 191,{“ 0 *”,“ 1 *”,“ 2 *”,“ 3 *”,“ 4 *”,“ 5 *”,“ 6 *“,” 7 *“,” 8 *“,” 9 *“},'Sheet1'!E $ 2:E $ 191,{”>“;” <-“}&F8))

AND

= SUMPRODUCT(COUNTIFS('Sheet1'!A $ 2:A $ 191,{“ 0 *”,“ 1 *”,“ 2 *”,“ 3 *”,“ 4 *”,“ 5 *”,“ 6 *“,” 7 *“,” 8 *“,” 9 *“},'Sheet1'!E $ 2:E $ 191,IF({1; 0},”>“&F8,” <“&-1 * F8)))