[英]VLookup with multiple results adding values
I would like to lookup a value in another excel file that will have multiple results as rows. 我想在另一个将多个结果作为行的excel文件中查找值。 For example If the specific value is found in the column A of that row I want to add the number in column c to a total and then output that.
例如,如果在该行的A列中找到了特定值,我想将c列中的数字加到总计中,然后输出。
Book 1 VLookup from this sheet : 从此表中预订1 VLookup:
Book 2 Vlookup destination: 预订2 Vlookup目的地:
Desired Result: 所需结果:
I would normally add what I have tried, but im completely stumped, the only real formula ive tried is a standard VLookup. 我通常会添加我尝试过的内容,但是我完全感到困惑,我尝试过的唯一真正公式是标准的VLookup。 The Watered down question is "Need to know: how many sales per unique sku?"
陷入困境的问题是“需要知道:每个唯一的sku有多少销售量?”
As @BigBen suggested in the comment, use =SUMIF()
formula. 正如@BigBen在注释中建议的那样,使用
=SUMIF()
公式。
in a pseudocode:
=SUMIF(range_to_check, product_name, sales_amount_range)
用伪代码:
=SUMIF(range_to_check, product_name, sales_amount_range)
So with the following data: 因此,具有以下数据:
The formula in E1
which you can drag to other cells in the column would look like: 您可以将
E1
中的公式拖动到列中的其他单元格,如下所示:
=SUMIF(A1:A6, D1, B1:B6)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.