【问题标题】:Excel sumifs based on numerous criteria基于众多标准的 Excel sumifs
【发布时间】:2017-08-29 22:50:40
【问题描述】:

自从我上次使用 excel 以来已经有一段时间了。我一直试图得到总和,但总是卡住。

=SUMIF(Sheet1!C:C,"YES",Sheet2!A:A,Sheet1!A:A,(Sheet1!B:B))

如果 Sheet1 ColumnC 包含单词“YES”,并且 Sheet1 ColumnA 与 Sheet2 ColumnA 匹配,我一直在尝试添加 Sheet1 ColumnB

这个想法是根据两个标准添加 Sheet1 ColumnB。 Sheet1 ColumnA 匹配 Sheet2 ColumnA 并且 Sheet1 ColumnC 必须包含文本“YES”

**Sheet1**
     ColumnA ColumnB ColumnC
Row1    A       4      YES
Row2    B       5      
Row3    C       6      YES
Row4    A       6      
Row5    D       6      YES
Row6    A       6      YES

**Sheet2**
     ColumnA
Row1    A
Row2    B
Row3    C

Sheet2 ColumnB 应如下所示(基于上面的示例)

**Sheet2**
     ColumnA ColumnB
Row1    A      10
Row2    B      0
Row3    C      6

【问题讨论】:

  • 什么是...但总是卡住。是什么意思?

标签: excel


【解决方案1】:

使用SUMIFS()。在 B1:

=SUMIFS(Sheet1!B:B,Sheet1!C:C,"YES",Sheet1!A:A,A1)

然后复制向下拖动。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-11
    • 1970-01-01
    • 2020-09-07
    • 2023-02-04
    相关资源
    最近更新 更多