Summing up multiple functions based on conditions in multiple arrays in Excel.

huangapple go评论54阅读模式
英文:

Summing up multiple functions based on conditions in multiple arrays in Excel

问题

我试图做的是,如果一个产品是企业级并且已经激活超过12个月,就将第4列的收入乘以激活的月数。然后将满足条件的所有行相加,以得到最终值。我尝试了将多个SUMIFS函数组合在一起,但它给我错误的值。我不能在SUMIFS函数中将函数作为sum数组输入,但如果可以的话,它会起作用。

Summing up multiple functions based on conditions in multiple arrays in Excel.

我尝试了多个SUMIFS函数,并在sum数组中添加了乘法函数。我还尝试了几个SUMPRODUCT函数。

英文:

What I am trying to do is if a Product is Enterprise and has been active for over 12 months multiply the revenue in column 4 by the amount of months active. Then sum up all of the rows that meet the criteria together to get a final value. I have tried combining multiple SUMIFS functions together but it gives me the wrong value. I cant have a function as the sum array input in a sumifs fuction but if I could it would work.

Summing up multiple functions based on conditions in multiple arrays in Excel.

I tried multiple SUMIFS functions and adding the multiplication function in the sum array. I also tried several sumproduct functions.

答案1

得分: 1

=SUMPRODUCT((A2:A8="Enterprise")(C2:C8>12)(D2:D8)*(C2:C8))

英文:

Take a look at SUMPRODUCT: sumproduct

=SUMPRODUCT((A2:A8="Enterprise")*(C2:C8>12)*(D2:D8)*(C2:C8))

Summing up multiple functions based on conditions in multiple arrays in Excel.

huangapple
  • 本文由 发表于 2023年6月30日 00:59:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76583161.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定