Hello!
I had question about identifying ID's and getting SUM of items that appear on both lists/tables. I have hundreds of rows of data so this is example is a mere simplification of the data I am working with.
With something like ten items per table, it would be simple to do it manually and by eye going through each item on both lists (like I did for the final table I want to achieve). However, with hundreds of items, I know there must be a more effective and efficient way of identifying and finding cumulative quantity of the item.
These two tables would be the list I have of Item ID, Description, and Quantity columns in each table. I want to extract only the items that appear on both lists and list the ID and sum of quantity to a destination area/cell.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Item Description[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]AAA1[/TD]
[TD]-[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]AAB7[/TD]
[TD]-[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]AAC5[/TD]
[TD]-[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]BAB2[/TD]
[TD]-[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Item Description[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]AAA3[/TD]
[TD]-[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]AAA1[/TD]
[TD]-[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]ACA6[/TD]
[TD]-[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]BAB2[/TD]
[TD]-[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]HAI32[/TD]
[TD]-[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]BAB2[/TD]
[TD]-[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
From these two tables, the final table I want to achieve would look like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Item Description[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]AAA1[/TD]
[TD]-[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]BAB2[/TD]
[TD]-[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
I have been trying to map the process in my head, but I can't seem to find a clear answer or method to do this for tables with hundreds of rows.
I don't know if I am correct or even close, but I was in the realm of thinking of combining a SUM and MATCH function to achieve my goal.
I would greatly appreciate the help. Thank you!
I had question about identifying ID's and getting SUM of items that appear on both lists/tables. I have hundreds of rows of data so this is example is a mere simplification of the data I am working with.
With something like ten items per table, it would be simple to do it manually and by eye going through each item on both lists (like I did for the final table I want to achieve). However, with hundreds of items, I know there must be a more effective and efficient way of identifying and finding cumulative quantity of the item.
These two tables would be the list I have of Item ID, Description, and Quantity columns in each table. I want to extract only the items that appear on both lists and list the ID and sum of quantity to a destination area/cell.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Item Description[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]AAA1[/TD]
[TD]-[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]AAB7[/TD]
[TD]-[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]AAC5[/TD]
[TD]-[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]BAB2[/TD]
[TD]-[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Item Description[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]AAA3[/TD]
[TD]-[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]AAA1[/TD]
[TD]-[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]ACA6[/TD]
[TD]-[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]BAB2[/TD]
[TD]-[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]HAI32[/TD]
[TD]-[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]BAB2[/TD]
[TD]-[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
From these two tables, the final table I want to achieve would look like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Item Description[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]AAA1[/TD]
[TD]-[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]BAB2[/TD]
[TD]-[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
I have been trying to map the process in my head, but I can't seem to find a clear answer or method to do this for tables with hundreds of rows.
I don't know if I am correct or even close, but I was in the realm of thinking of combining a SUM and MATCH function to achieve my goal.
I would greatly appreciate the help. Thank you!