sumif行和列从两个或多个表使用标题索引/匹配

如何总结两个表中的行和列? 该公式应匹配每个表行号和列标题,find交点并对其进行求和。 我只能使用sumif手动执行此操作,但是我想要一个实际的公式,所以我不需要search表2的标题。我向forumla或vba

本质上公式如下: =SUMIF("Table 3 ID Column",Table 1 ID,"Table 2 Income")

这是不正确的,但是看起来像这样: =SUMIF("Table 3 Col", Value, ADDRESS(MATCH(Value,Col array,0) , MATCH(header Value ,header array,0),1))

 Table 1 ID Name 25173 Blue 25710 Debbie 64092 John 64094 Apples 6959 Oranges 6983 Amy Table 2 ID Income 25173 142 6983 298 64092 2205 25173 462 25173 346 64092 644 Table 3 Desired Output ID Name Income 25173 Blue 950 25710 Debbie 0 64092 John 2849 64094 Apples 0 6959 Oranges 0 6983 Amy 0 

[[更新]] [ 在这里输入图像说明 ] 1

如果这些表格是Excel表格(主页>格式为表格),那么您可以复制表格2并使用此公式添加一个新的表格列

 = SUMIF( Table2[ID], [ID], Table2[Income] )