Sumif over two worksheets

gj80

New Member
Joined
Jan 4, 2012
Messages
12
Hi

I have two worksheets

Worksheet 1
List of suppliers and product codes, some products have 2 suppliers (over 2000 products)

Worksheet 2
List of supplier, product codes and quantity sold. Multiple product codes are listed with different quantities and suppliers.

What I would like to do is show on worksheet 1 next to the product code for the supplier the total sum of sold by product.

Example
Works sheet 1
Supplier Stock Code Total sold
ABC 123
DEF 456
GEH 789
IJK 123


Worksheet 2

Supplier Stock Code Qty Sold
ABC 123 5
ABC 123 5
IJK 123 3

I have tried a sumif but not all the details are pulling through.

Can you please help?

Many Thanks
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,631
Is this what you need?

=SUMIFS(Sheet2!C:C,Sheet2!A:A,Sheet1!A2,Sheet2!B:B,Sheet1!B2)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,514
Messages
5,596,612
Members
414,080
Latest member
penguin23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top