Arrayformula为某些公式工作,但没有其他公式

发布于 2025-02-06 14:11:41 字数 463 浏览 3 评论 0原文

此arrayformula有效:

=ArrayFormula(IF(ISBLANK(F:F); ""; E:E*G:G))

(它进行简单的计算并填充所有不是空的行)

此公式也有效:

=(E1/$J$1*G1)+((1-(E1/$J$1))*$K$1)

(对加权排序进行计算)

但是,最后一个公式的arrayformula版本无法正常工作:

=ArrayFormula(IF(B:B=""; ""; (E1/$J$1*G1)+((1-(E1/$J$1))*$K$1)))

它不会给出错误,并且填充了正确的行,但它显示了所有行的结果(不是正确的结果,只有一个,只有一个行应显示1)。

关于可能发生的事情或如何解决的想法?

谢谢!

This ArrayFormula works:

=ArrayFormula(IF(ISBLANK(F:F); ""; E:E*G:G))

(it does a simple calculation and fill with it all the rows that are not empty)

This formula also works:

=(E1/$J$1*G1)+((1-(E1/$J$1))*$K$1)

(it does a calculation for a weighted sort)

But the ArrayFormula version of that last formula doesn't work as expected:

=ArrayFormula(IF(B:B=""; ""; (E1/$J$1*G1)+((1-(E1/$J$1))*$K$1)))

It doesn't give an error and it fills the correct rows, but it shows a 1 as a result for all rows (not the correct result, only one of the rows should show the 1).

Any ideas of what could be happening or how to solve it?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

脸赞 2025-02-13 14:11:41

使用:

=ARRAYFORMULA(IF(B:B="";; (E:E/J1*G:G)+((1-(E:E/J1))*K1)))

use:

=ARRAYFORMULA(IF(B:B="";; (E:E/J1*G:G)+((1-(E:E/J1))*K1)))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文