根据多个条件求行的总和。

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

Sum of row based on multiple criteria

问题

我有一个显示月度预算的表格,并正在尝试开发一个公式,用于对给定在公式中选择的月份之后的任何月份求和。

在下面的链接中,我提供了一个示例,我有哪些条件以及我希望实现的结果。

https://docs.google.com/spreadsheets/d/1sfIpiu668VWTopiq_fjNe-8V_eNyrJIa5R20cS_4CPA/edit?usp=sharing

我感激能够提供的任何支持和帮助,以找到这个问题的解决方案。

英文:

I have a table displaying monthly budgets and am attempting to develop a formula that sums any month beyond a selection given in the formula.

In the link below, I have given an example, what criteria I have and the result I am hoping to achieve.

https://docs.google.com/spreadsheets/d/1sfIpiu668VWTopiq_fjNe-8V_eNyrJIa5R20cS_4CPA/edit?usp=sharing

I appreciate any support and help that can be provided to find a solution for this.

答案1

得分: 2

*你可以尝试:*

    =map(A5:A8,lambda(Σ,sum(ifna(filter(filter(Budget!B2:M,Budget!B1:M1>B2),Budget!A2:A5=Σ)))))

[![在此输入图片描述][1]][1]

  [1]: https://i.stack.imgur.com/QzeOl.png
英文:

<!-- language-all: js -->

You may try:

=map(A5:A8,lambda(Σ,sum(ifna(filter(filter(Budget!B2:M,Budget!B1:M1&gt;B2),Budget!A2:A5=Σ)))))

根据多个条件求行的总和。

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

发表评论

匿名网友

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

确定