SumProduct or INDEX MATCH and help using it

jamieleeuk

Board Regular
Joined
Feb 9, 2009
Messages
99
Hi,

I've not posted for a long time, but now I am need help again and my first port of call was Mr Excel.

I have two tables on the same sheet

ABCDEFGHIJ
batch #weight inBatch numweight out
AA000110,000AA00013,000
AA00027,000AA00012,000
AA00036,000AA00024,000
AA000412,000AA00032,000
AA00033,000
AA00031,000
AA00011,000
AA00047,000

<tbody>
</tbody>

I have a dropdown list in cell H1 which lists the unique Batch numbers the left hand table and in cell H2, I want the following to happen:

Say for instance I chose AA0001 in the drop down box, in cell H2, I would like excel to add up all the 'weight' values for batch number AA0001 in the left hand table and then deduct the sum of values with the corresponding Batch numbers in the right hand table.

So, if I chose AA0001 from the drop down list, H2 would give me the answer of 4,000 (being the 10,000 we received in, less the 3,000 plus 2,000 plus 1,000 that we have sent out).

For the life of me I cannot get the hang over Index Match or Sumproduct and I'm sure you guys will be able to tell me in the blink of an eye!

Thanks for any assistance,
Jamie
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I'll post mine, as it works as well, and I only realised it was solved when I completed it:

In H2:
=SUMIF(A:A,H1,B:B)-SUMIF(E:E,H1,F:F)
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,176
Members
448,554
Latest member
Gleisner2

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
Back
Top