IFS 具有不匹配的范围大小。预期行数:1。列数:1。实际行数:1000,列数:1

IFS has mismatched range sizes. Expected row count: 1. column count: 1. Actual row count: 1000, column count: 1

我的公式如下:

=ARRAYFORMULA(IFS(AND(H2:H >= -B39, H2:H <= B40), 100, H2:H > B37, 0))

然而这一行不断抛出错误:

IFS has mismatched range sizes. Expected row count: 1. column count: 1. Actual row count: 1000, column count: 1.

知道如何解决这个问题吗?

我有类似的有效公式:

=ARRAYFORMULA(IFS(F2:F <= 0, 100, F2:F >= B19, 0, true, (B19 - F2:F) / B19 * 100))

不确定我对第一个公式所做的不同会导致问题。

ANDARRAYFORMULA

下不受支持
=ARRAYFORMULA(IFS((H2:H >= -B39)*(H2:H <= B40), 100, H2:H > B37, 0))

IFS 在某些情况下也不适合 ARRAYFORMULA

尝试:

=ARRAYFORMULA(IF((H2:H >= -B39)*(H2:H <= B40), 100, IF( H2:H > B37, 0, )))