对列A和B进行配对,在C中获取匹配数据,考虑不同用户的双倍值

时间:2014-11-14 01:18:57

标签: excel excel-formula excel-2013

我列 “宣言A” “宣言B” (与其通讯员 “卷”)。 “A” 有超过1000行, “B” 约为800,所以不可能手工完成。

“宣言C” 必须包含 “A”的结果 > “B” 匹配和配对,并在无匹配的位置添加空白单元格。

这是在 here 之前完成的,并且一切正常,直到我发现某些单元格在 “A”列中可能具有相同的值 “B” 。我没有预料到这一点。

我举了一个例子来说明当我应用answer时遇到的另一个问题时发生的事情:

worksheet showing 3 tables with 3 column each (User, Manifesto and Volumes), with duplicate Manifesto values highlighted in all tables and duplicate volumes for same manifestos in column "Volumes C", showing the error

请注意,配对完全正常,但 “Volumes C” 单元格正在从与第一个“17616”耦合的卷中重复< “Manifestos B” 栏上的/ strong>宣言单元格,这不可能发生。

单元格 K3 的公式如下:

=IF(NOT(ISERROR(MATCH(C3,G$3:G$15,0))),C3,"")

对于单元 L3 和下面的

=IFERROR(VLOOKUP(K3,G$3:H$15,2,0),"")


现在我必须将“用户”过滤器添加到等式中,以便我可以得到下面的预期结果:

worksheet showing 3 tables with 3 column each (User, Manifesto and Volumes), with duplicate Manifesto values highlighted in all tables and distinct volumes for same manifestos in column "Volumes C", showing the expected result

1 个答案:

答案 0 :(得分:4)

您可以在“L3”中尝试此公式并将其复制下来:

=SUMIFS($H$3:$H$15;$F$3:$F$15;J3;$G$3:$G$15;K3)