简体   繁体   中英

VLookup with multiple results adding values

I would like to lookup a value in another excel file that will have multiple results as rows. 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.

Book 1 VLookup from this sheet :

查找表

Book 2 Vlookup destination:

目的地

Desired Result:

所需结果

I would normally add what I have tried, but im completely stumped, the only real formula ive tried is a standard VLookup. The Watered down question is "Need to know: how many sales per unique sku?"

As @BigBen suggested in the comment, use =SUMIF() formula.

in a pseudocode: =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:

=SUMIF(A1:A6, D1, B1:B6)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM