I need some help with a formula. In theory, multiplying weight supposed to be in bags x bags = total weight in bags but we used more than the theory number of lbs. The difference between what we were supposed to used and actually used is scrap. I need to find out what the scrap and yields are but I'm not getting my numbers to jive. I need to write a formula that looks up the part data and autofills how much was used in reality in order to get a yield and scrap. Any help would be appreciated.
[TABLE="width: 618"]
<colgroup><col><col><col><col span="4"><col><col span="2"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Part #[/TD]
[TD]Lbs[/TD]
[TD][/TD]
[TD]Part #[/TD]
[TD]Lbs/bag[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]4/22/2018[/TD]
[TD="align: right"] 4/23/2018[/TD]
[/TR]
[TR]
[TD="align: right"]4/22/2018 [/TD]
[TD]ABC[/TD]
[TD="align: right"]4,522[/TD]
[TD][/TD]
[TD]ABC[/TD]
[TD="align: right"]0.5[/TD]
[TD][/TD]
[TD]Bags[/TD]
[TD="align: right"]5,300[/TD]
[TD="align: right"]3,800[/TD]
[/TR]
[TR]
[TD="align: right"]4/22/2018[/TD]
[TD] DEF[/TD]
[TD="align: right"]9,871[/TD]
[TD][/TD]
[TD]DEF[/TD]
[TD][/TD]
[TD].75[/TD]
[TD]Lbs[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4/22/2018 [/TD]
[TD]ABC[/TD]
[TD="align: right"]8,745[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4/23/2018 [/TD]
[TD]ABC[/TD]
[TD="align: right"]4,561[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]theory[/TD]
[TD="align: right"]2,650[/TD]
[TD="align: right"]1,900[/TD]
[/TR]
[TR]
[TD="align: right"]4/23/2018 [/TD]
[TD]DEF[/TD]
[TD="align: right"]5,687[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]reality[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]4/23/2018[/TD]
[TD] ABC[/TD]
[TD="align: right"]1,358[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yield[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 618"]
<colgroup><col><col><col><col span="4"><col><col span="2"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Part #[/TD]
[TD]Lbs[/TD]
[TD][/TD]
[TD]Part #[/TD]
[TD]Lbs/bag[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]4/22/2018[/TD]
[TD="align: right"] 4/23/2018[/TD]
[/TR]
[TR]
[TD="align: right"]4/22/2018 [/TD]
[TD]ABC[/TD]
[TD="align: right"]4,522[/TD]
[TD][/TD]
[TD]ABC[/TD]
[TD="align: right"]0.5[/TD]
[TD][/TD]
[TD]Bags[/TD]
[TD="align: right"]5,300[/TD]
[TD="align: right"]3,800[/TD]
[/TR]
[TR]
[TD="align: right"]4/22/2018[/TD]
[TD] DEF[/TD]
[TD="align: right"]9,871[/TD]
[TD][/TD]
[TD]DEF[/TD]
[TD][/TD]
[TD].75[/TD]
[TD]Lbs[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4/22/2018 [/TD]
[TD]ABC[/TD]
[TD="align: right"]8,745[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4/23/2018 [/TD]
[TD]ABC[/TD]
[TD="align: right"]4,561[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]theory[/TD]
[TD="align: right"]2,650[/TD]
[TD="align: right"]1,900[/TD]
[/TR]
[TR]
[TD="align: right"]4/23/2018 [/TD]
[TD]DEF[/TD]
[TD="align: right"]5,687[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]reality[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]4/23/2018[/TD]
[TD] ABC[/TD]
[TD="align: right"]1,358[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Yield[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]