Screen Shot 2016-03-09 at 00.46.04.png

I need to find a formula that will give me a total in D2.

The range that I will be using will be in B in the below picture.

Screen Shot 2016-03-09 at 00.43.15.png

Upon the sheet in the first pic, I will select the product I wish to find a total for down column A.

Therefore I need to find a way to only add up the numbers in column B (2nd pic) to match the same product in from C (2nd pic).

All help really appreciated!