简体   繁体   English

SUMIFS 标准范围内的公式

[英]formula in criteria range in SUMIFS

Can I apply formula in criteria range in SUMIFS as I don't want to do it outside.我可以在 SUMIFS 的标准范围内应用公式,因为我不想在外面做。

I am trying something like below-我正在尝试类似下面的东西 -

=SUMIFS('sheet1'!D:D,(LEFT('sheet2'!A:A,6)),"="&LEFT('sheet3'!B1,6))

No, that kind of manipulation doesn't work in SumIfs.不,这种操作在 SumIfs 中不起作用。 You would need to use SumProduct.您将需要使用 SumProduct。 You shouldn't use full column references with that, since that will be very slow.你不应该使用完整的列引用,因为这会很慢。

=SUMProduct('sheet1'!$D$1:$D$1000,--(LEFT('sheet2'!$A$1:$A$1000,6)=LEFT('sheet3'!B1,6)))

For SUMIFS , you would need a different set-up using wildcards:对于SUMIFS ,您需要使用通配符进行不同的设置:

=SUMIFS(Sheet1!D:D,Sheet1!A:A,LEFT(Sheet3!B1,6)&"*")

though note that this will not work if the entries in Sheet1!A:A are numeric.但请注意,如果Sheet1!A:A中的条目是数字,这将不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM