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!
 

Oeldere

Well-known Member
Joined
Dec 29, 2011
Messages
2,209
<b></b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">Bill of Materials Table</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">Product Code</td><td style="text-align: right;;"></td><td style=";">SubProduct Code</td><td style=";">SubProQuantity/Product</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">2147561</td><td style="text-align: right;;">21475611</td><td style="text-align: right;;">80603</td><td style="text-align: right;;">0,5</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">2147561</td><td style="text-align: right;;">21475612</td><td style="text-align: right;;">23127</td><td style="text-align: right;;">1</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;">2147561</td><td style="text-align: right;;">21475613</td><td style="text-align: right;;">11002</td><td style="text-align: right;;">1</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: right;;">3387595</td><td style="text-align: right;;">33875951</td><td style="text-align: right;;">80603</td><td style="text-align: right;;">0,5</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;">3387595</td><td style="text-align: right;;">33875952</td><td style="text-align: right;;">29034</td><td style="text-align: right;;">1</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;">3387595</td><td style="text-align: right;;">33875953</td><td style="text-align: right;;">11015</td><td style="text-align: right;;">2</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style=";">Order number</td><td style=";">Product Code</td><td style=";">Ordered Quantity</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style="text-align: right;;">52098</td><td style="text-align: right;;">2147561</td><td style="text-align: right;;">15000</td><td style="text-align: right;background-color: #A9D08E;;">80603</td><td style="text-align: right;background-color: #A9D08E;;">7500</td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style="text-align: right;;">52098</td><td style="text-align: right;;">2147561</td><td style="text-align: right;;">15000</td><td style="text-align: right;background-color: #A9D08E;;">23127</td><td style="text-align: right;background-color: #A9D08E;;">15000</td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style="text-align: right;;">52098</td><td style="text-align: right;;">2147561</td><td style="text-align: right;;">15000</td><td style="text-align: right;background-color: #A9D08E;;">11002</td><td style="text-align: right;background-color: #A9D08E;;">15000</td></tr><tr ><td style="color: #161120;text-align: center;">20</td><td style="text-align: right;;">52098</td><td style="text-align: right;;">2147561</td><td style="text-align: right;;">15000</td><td style="background-color: #A9D08E;;"></td><td style="background-color: #A9D08E;;"></td></tr><tr ><td style="color: #161120;text-align: center;">21</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Blad5</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">F7</th><td style="text-align:left">=E7&COUNTIF(<font color="Blue">$E$7:$E7,$E7</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">F8</th><td style="text-align:left">=E8&COUNTIF(<font color="Blue">$E$7:$E8,$E8</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">F9</th><td style="text-align:left">=E9&COUNTIF(<font color="Blue">$E$7:$E9,$E9</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">F10</th><td style="text-align:left">=E10&COUNTIF(<font color="Blue">$E$7:$E10,$E10</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">F11</th><td style="text-align:left">=E11&COUNTIF(<font color="Blue">$E$7:$E11,$E11</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">F12</th><td style="text-align:left">=E12&COUNTIF(<font color="Blue">$E$7:$E12,$E12</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">H17</th><td style="text-align:left">=IFERROR(<font color="Blue">VLOOKUP(<font color="Red">$F17&ROW(<font color="Green"></font>)-16,$F$7:$H$12,COLUMN(<font color="Green"></font>)-6,0</font>),""</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">I17</th><td style="text-align:left">=IFERROR(<font color="Blue">VLOOKUP(<font color="Red">$F17&ROW(<font color="Green"></font>)-16,$F$7:$H$12,COLUMN(<font color="Green"></font>)-6,0</font>)*G17,""</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">H18</th><td style="text-align:left">=IFERROR(<font color="Blue">VLOOKUP(<font color="Red">$F18&ROW(<font color="Green"></font>)-16,$F$7:$H$12,COLUMN(<font color="Green"></font>)-6,0</font>),""</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">I18</th><td style="text-align:left">=IFERROR(<font color="Blue">VLOOKUP(<font color="Red">$F18&ROW(<font color="Green"></font>)-16,$F$7:$H$12,COLUMN(<font color="Green"></font>)-6,0</font>)*G18,""</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">H19</th><td style="text-align:left">=IFERROR(<font color="Blue">VLOOKUP(<font color="Red">$F19&ROW(<font color="Green"></font>)-16,$F$7:$H$12,COLUMN(<font color="Green"></font>)-6,0</font>),""</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">I19</th><td style="text-align:left">=IFERROR(<font color="Blue">VLOOKUP(<font color="Red">$F19&ROW(<font color="Green"></font>)-16,$F$7:$H$12,COLUMN(<font color="Green"></font>)-6,0</font>)*G19,""</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">H20</th><td style="text-align:left">=IFERROR(<font color="Blue">VLOOKUP(<font color="Red">$F20&ROW(<font color="Green"></font>)-16,$F$7:$H$12,COLUMN(<font color="Green"></font>)-6,0</font>),""</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">I20</th><td style="text-align:left">=IFERROR(<font color="Blue">VLOOKUP(<font color="Red">$F20&ROW(<font color="Green"></font>)-16,$F$7:$H$12,COLUMN(<font color="Green"></font>)-6,0</font>)*G20,""</font>)</td></tr></tbody></table></td></tr></table><br />
 

JPCoelho29

New Member
Joined
Feb 13, 2015
Messages
3
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 ;)
 

Forum statistics

Threads
1,082,114
Messages
5,363,244
Members
400,722
Latest member
DrewPop24

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top