【问题标题】:Sum a column in Excel based on two references in the column and two filter reference columns根据列中的两个引用和两个过滤器引用列对 Excel 中的列求和
【发布时间】:2014-06-19 10:08:10
【问题描述】:

我需要对列的值求和,但我需要根据列中的两个值来识别列,并且我必须通过两个相邻列中的值对其进行过滤。

这是一个例子:

Reference1            Act.   Act.   Act.    ...    Bud.   Bud.   Bud.
Reference2            Jan    Feb    Mar     ...    Jan    Feb    Mar

Reference3 Reference4
CAR        BLUE       1      2      3              4      5      6 
CAR        BLUE       1      2      3              4      5      6    
CAR        RED        1      2      3              4      5      6 

所以,我必须添加所有 CAR & BLUE & Act。 & Jan = 1+1 = 2。其他列也是如此。

我想实现以下目标:

Reference3 Reference4 Reference1 Reference2 Value     
CAR        BLUE       Act.       Jan        2   
CAR        BLUE       Act.       FEB        4 

我遇到的问题是在上面的值列中使用的公式。当原始源表中的列发生变化时,我无法执行 SUMIFS。 VLOOKUP 不起作用,因为lookup_value 没有单列。我考虑过使用 MATCH 来识别列,但由于我有两个引用(1&2),它也不起作用。

关于我可以使用什么公式来实现上述目标的任何想法。

谢谢

【问题讨论】:

    标签: excel match vlookup sumifs


    【解决方案1】:

    尝试根据您的数据制作数据透视表(虽然这不会制作公式,但仍会为您提供所需的结果)。

    这是在 Excel 2003 中执行此操作的简单指南 - http://www.techonthenet.com/excel/pivottbls/create.php

    【讨论】:

      【解决方案2】:

      您可以在列中创建一个 Key:

      = Reference3 & Reference4 & Reference1 & reference2
      

      在使用小计命令(内部数据)之后。
      每次修改数据,都需要复用Subtotal

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-01-21
        • 2019-08-10
        • 2021-03-03
        • 1970-01-01
        • 2020-02-11
        相关资源
        最近更新 更多