2014-06-19 27 views
0

我需要對列的兩個值進行求和,但我需要根據列中的兩個值來確定列,並且必須對其進行過濾由兩個近視列中的值決定。根據列中的兩個引用和兩個過濾器引用列,在Excel中求和一列

下面是一個例子:

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 

所以,我必須添加所有的汽車& BLUE &法案。 & 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),它也不起作用。

任何關於我可以用來實現上述公式的想法。

感謝

回答

0

您可以在一個列上創建一個關鍵:

= Reference3 & Reference4 & Reference1 & reference2 

和使用小計命令(內部資料)之後。
每次修改數據時,都需要重用小計

相關問題