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
Order numberProduct CodeOrdered Quantity
52098214756115000
5209833875955000

<tbody>
</tbody>

Bill of Materials Table
Product Code​
SubProduct CodeSubProQuantity/Product
2147561​
806030,5
2147561​
231271
2147561​
110021
3387595​
806030,5
3387595​
290341
3387595​
110152

<tbody>
</tbody>












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

Order NumberProduct CodeSubProduct CodeSubProduct Total Quantity
52098
2147561​
80603​
7500
52098
2147561​
23127​
15000
52098
2147561​
11002​
15000

<tbody>
</tbody>

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

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

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,214,402
Messages
6,119,299
Members
448,885
Latest member
LokiSonic

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