Exceladd1ct
Board Regular
- Joined
- Feb 10, 2019
- Messages
- 76
Hello,
I need a piece of code that will calculate the quantities of needed ingredients for some products but i am stuck with some 2d arrays and the code messed up. Can you please help me?
In the attached images,
-the result for ingredient1 is 40 because we need 20 cakes and we use 2 pcs in each cake.
-the result for ingredient15 is 30 because we use 1 pcs in each cake but it is needed in both cake1 and cake3
-and so on
I will run the code with a button or a shape on the worksheet.
We can asume the columns for RECIPES sheet are A,B,C,D and for CALCULATOR sheet are A,B and E,F,G respectively.
Thank you!
I need a piece of code that will calculate the quantities of needed ingredients for some products but i am stuck with some 2d arrays and the code messed up. Can you please help me?
In the attached images,
-the result for ingredient1 is 40 because we need 20 cakes and we use 2 pcs in each cake.
-the result for ingredient15 is 30 because we use 1 pcs in each cake but it is needed in both cake1 and cake3
-and so on
I will run the code with a button or a shape on the worksheet.
We can asume the columns for RECIPES sheet are A,B,C,D and for CALCULATOR sheet are A,B and E,F,G respectively.
Thank you!