【问题标题】:Is it possible to sum a value if the substraction of two value on the same row equals something?如果同一行上的两个值相减等于某个值,是否可以求和一个值?
【发布时间】:2021-05-26 18:56:09
【问题描述】:

我正在尝试制作一张表格,我可以在其中查看我每个月需要支付的费用。

假设我有下表

Current installment (CI) Total installments (TI) Installment amount (IA)
1 3 $100
1 1 $200
2 3 $150
1 3 $75
2 4 $150
1 1 $50

因此,如果 TI-CI >= 1,则第一个月将是该值的总和。接下来的一个月我会做同样的事情,但 TI-CI >= 2

结果会是这样的

- -
1st month debt $475 (the result of 100+150+75+100)
2nd month debt $325 (the result of 100+75+150)
3rd month debt $100

这可能吗?

【问题讨论】:

    标签: google-sheets spreadsheet google-docs


    【解决方案1】:

    尝试:

    =IFNA(SUM(FILTER(C$2:C, (B$2:B-A$2:A)>=ROW(A1))))
    

    向下拖动

    【讨论】:

    • 谢谢!这就是答案
    猜你喜欢
    • 1970-01-01
    • 2022-07-06
    • 2013-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-06
    • 2011-11-20
    相关资源
    最近更新 更多