jerryjacobi
New Member
- Joined
- Nov 27, 2017
- Messages
- 2
Hi,
I am trying to compile an array formula to perform following action:
Here are input data:
Prices in EUR for parts for months
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Jan 2018[/TD]
[TD]Feb 2018[/TD]
[TD]Mar 2018[/TD]
[TD]Apr 2018[/TD]
[/TR]
[TR]
[TD]PART1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]PART2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]PART3[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
Structures (bill of material) of finished products
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]PRODUCT1[/TD]
[TD]PRODUCT2[/TD]
[TD]PRODUCT3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT2[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT3[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PART1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PART2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PART3[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And now I need to get price of each final product of each month. For example PRODUCT1 is composed of one piece PART1 and one piece PART2. For January they have prices in the first table (1 EUR and 2 EUR). So total price of PRODUCT1 for January is 1x1 + 1x2 => 3 EUR. For February it is 1x2 + 1x3 => 5 EUR.
Final PRICELIST should look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Jan 2018[/TD]
[TD]Feb 2018[/TD]
[TD]Mar 2018[/TD]
[TD]Apr 2018[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]PRODUCT2[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]9[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]PRODUCT3[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]8[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
Is there a way how make an array formula to calculate price in PRICELIST based on above data? I am trying to solve this for days but still can't make it work
It should be combination of vlookup (to find valid price) and sumproduct (to multiply piece prices by number of parts in final product). But this vlookup must return price of all parts for given month ... Am I going in the right direction?
Thank you very much for you help.
BR
Lukas
I am trying to compile an array formula to perform following action:
Here are input data:
Prices in EUR for parts for months
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Jan 2018[/TD]
[TD]Feb 2018[/TD]
[TD]Mar 2018[/TD]
[TD]Apr 2018[/TD]
[/TR]
[TR]
[TD]PART1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]PART2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]PART3[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
Structures (bill of material) of finished products
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]PRODUCT1[/TD]
[TD]PRODUCT2[/TD]
[TD]PRODUCT3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT2[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT3[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PART1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PART2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PART3[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And now I need to get price of each final product of each month. For example PRODUCT1 is composed of one piece PART1 and one piece PART2. For January they have prices in the first table (1 EUR and 2 EUR). So total price of PRODUCT1 for January is 1x1 + 1x2 => 3 EUR. For February it is 1x2 + 1x3 => 5 EUR.
Final PRICELIST should look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Jan 2018[/TD]
[TD]Feb 2018[/TD]
[TD]Mar 2018[/TD]
[TD]Apr 2018[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]PRODUCT2[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]9[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]PRODUCT3[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]8[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
Is there a way how make an array formula to calculate price in PRICELIST based on above data? I am trying to solve this for days but still can't make it work
It should be combination of vlookup (to find valid price) and sumproduct (to multiply piece prices by number of parts in final product). But this vlookup must return price of all parts for given month ... Am I going in the right direction?
Thank you very much for you help.
BR
Lukas