Bill of materials quantity

JPCoelho29

New Member
Joined
Feb 13, 2015
Messages
3
Hi, I'm not an excel expert and I need some guidance.

I need to create a table where I can see the the quantity of material requirements for the ordered quantity of products. I have two tables like these:

Orders Table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Order number[/TD]
[TD="align: center"]Product Code[/TD]
[TD="align: center"]Ordered Quantity[/TD]
[/TR]
[TR]
[TD="align: center"]52098[/TD]
[TD="align: center"]2147561[/TD]
[TD="align: center"]15000[/TD]
[/TR]
[TR]
[TD="align: center"]52098[/TD]
[TD="align: center"]3387595[/TD]
[TD="align: center"]5000[/TD]
[/TR]
</tbody>[/TABLE]

Bill of Materials Table
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]
Product Code​
[/TD]
[TD="align: center"]SubProduct Code[/TD]
[TD="align: center"]SubProQuantity/Product[/TD]
[/TR]
[TR]
[TD="align: center"]
2147561​
[/TD]
[TD="align: center"]80603[/TD]
[TD="align: center"]0,5[/TD]
[/TR]
[TR]
[TD="align: center"]
2147561​
[/TD]
[TD="align: center"]23127[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]
2147561​
[/TD]
[TD="align: center"]11002[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]
3387595​
[/TD]
[TD="align: center"]80603[/TD]
[TD="align: center"]0,5[/TD]
[/TR]
[TR]
[TD="align: center"]
3387595​
[/TD]
[TD="align: center"]29034[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]
3387595​
[/TD]
[TD="align: center"]11015[/TD]
[TD="align: center"]2[/TD]
[/TR]
</tbody>[/TABLE]












And the table that I want to get is something like this:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Order Number[/TD]
[TD]Product Code[/TD]
[TD]SubProduct Code[/TD]
[TD]SubProduct Total Quantity[/TD]
[/TR]
[TR]
[TD]52098[/TD]
[TD]
2147561​
[/TD]
[TD]
80603​
[/TD]
[TD]7500[/TD]
[/TR]
[TR]
[TD]52098[/TD]
[TD]
2147561​
[/TD]
[TD]
23127​
[/TD]
[TD]15000[/TD]
[/TR]
[TR]
[TD]52098[/TD]
[TD]
2147561​
[/TD]
[TD]
11002​
[/TD]
[TD]15000[/TD]
[/TR]
</tbody>[/TABLE]

Someone knows how can I achieve this result? Thanks in advance!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Book1
EFGHI
5Bill of Materials Table
6Product CodeSubProduct CodeSubProQuantity/Product
7214756121475611806030,5
8214756121475612231271
9214756121475613110021
10338759533875951806030,5
11338759533875952290341
12338759533875953110152
13
14
15
16Order numberProduct CodeOrdered Quantity
1752098214756115000806037500
18520982147561150002312715000
19520982147561150001100215000
2052098214756115000  
21
Blad5
Cell Formulas
RangeFormula
F7=E7&COUNTIF($E$7:$E7,$E7)
F8=E8&COUNTIF($E$7:$E8,$E8)
F9=E9&COUNTIF($E$7:$E9,$E9)
F10=E10&COUNTIF($E$7:$E10,$E10)
F11=E11&COUNTIF($E$7:$E11,$E11)
F12=E12&COUNTIF($E$7:$E12,$E12)
H17=IFERROR(VLOOKUP($F17&ROW()-16,$F$7:$H$12,COLUMN()-6,0),"")
H18=IFERROR(VLOOKUP($F18&ROW()-16,$F$7:$H$12,COLUMN()-6,0),"")
H19=IFERROR(VLOOKUP($F19&ROW()-16,$F$7:$H$12,COLUMN()-6,0),"")
H20=IFERROR(VLOOKUP($F20&ROW()-16,$F$7:$H$12,COLUMN()-6,0),"")
I17=IFERROR(VLOOKUP($F17&ROW()-16,$F$7:$H$12,COLUMN()-6,0)*G17,"")
I18=IFERROR(VLOOKUP($F18&ROW()-16,$F$7:$H$12,COLUMN()-6,0)*G18,"")
I19=IFERROR(VLOOKUP($F19&ROW()-16,$F$7:$H$12,COLUMN()-6,0)*G19,"")
I20=IFERROR(VLOOKUP($F20&ROW()-16,$F$7:$H$12,COLUMN()-6,0)*G20,"")
 
Upvote 0
Oeldere, thanks for your quick response! The method that you proposed doesn't solve my problem, because you are asssuming that you have the first three columns of the third table. I need something that can join the information of the first two tables and get the third one. I think I need something like a multi vlookup function...

Thanks anyway ;)
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,111
Members
452,544
Latest member
aush

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