# How to calculate recipe of ingredient stock

#### SokhaKH

##### New Member
 Finish Product code Finish Item Qty 2001 Burger 2 2002 Caffe tea 3

<tbody>
</tbody>
 Finish Product Code Raw Material Code Raw material item Qty Sub Qty 2001 1001 Salat 0.2 ? 2001 1002 Sugar 1 ? 2002 1003 Caffe 0.7 ? 2002 1001 Water 0.9 ? 2002 1003 Tea 0.2 ?

<tbody>
</tbody>
MY question: How to calculate Sub Qty for Raw material?

#### kweaver

##### Well-known Member
What should the Sub Qty ? be? Is the first one 2*0.2 and the second one 2*1

 Finish Product Code Finish Item Qty Finish Product Code Raw Material Code Raw material Item Qty Sub Qty 2001 Burger 2 2001 0.2 2 2002 Caffe tea 3 2001 1 2 2002 0.7 2.1 2002 0.2 0.6 2002

<colgroup><col><col><col span="2"><col><col><col><col span="2"></colgroup><tbody>
</tbody>
Where Sub Qty is:

Code:
``=VLOOKUP(E2,\$A\$2:\$C\$3,3,FALSE)``
Because I have the right array "Finish Product Code" in E column and the Qty in the left array in the C (third) column and
the Qty in the right array in the H column.

Last edited:

#### SokhaKH

##### New Member
Thanks all my problem solved with this formula [FONT=&quot]=IFERROR(VLOOKUP(V5, \$N\$5:\$O\$18, 2, 0) * Z5, "")[/FONT]

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

### 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...
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...