I would like to find the Sum of the No. Units*price*relevant exchange rate according to month and currency.
Here is my two sets of data:
1. Info
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Date[/TD]
[TD]Currency[/TD]
[TD]No Unit[/TD]
[TD]Unit Price[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]05/Jan[/TD]
[TD]EUR[/TD]
[TD]100[/TD]
[TD]1.15[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]07 Jan[/TD]
[TD]USD[/TD]
[TD]100[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]09 Feb[/TD]
[TD]HKD[/TD]
[TD]200[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]10 Mar[/TD]
[TD]EUR[/TD]
[TD]300[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]28 Mar[/TD]
[TD]USD[/TD]
[TD]700[/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]
2. Exchange rate matrix (Range named FX)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]EUR[/TD]
[TD]1.1[/TD]
[TD]1.2[/TD]
[TD]1.3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]HKD[/TD]
[TD]0.13[/TD]
[TD]0.14[/TD]
[TD]0.15[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]USD[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Essentially what I would like to find is one formula to Sum the products from column C, D, and the index match according to FX the range.
In other words
(C1*D1*Indexmatch to find exchange rate according to A1 and B2)+(C2*D2*Indexmatch to find exchange rate according to A2 and B2) etc......
I would like to avoid adding a column that finds the product for each row. Hence I'm asking for a formula to sum all info at once.
Here is my two sets of data:
1. Info
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Date[/TD]
[TD]Currency[/TD]
[TD]No Unit[/TD]
[TD]Unit Price[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]05/Jan[/TD]
[TD]EUR[/TD]
[TD]100[/TD]
[TD]1.15[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]07 Jan[/TD]
[TD]USD[/TD]
[TD]100[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]09 Feb[/TD]
[TD]HKD[/TD]
[TD]200[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]10 Mar[/TD]
[TD]EUR[/TD]
[TD]300[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]28 Mar[/TD]
[TD]USD[/TD]
[TD]700[/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]
2. Exchange rate matrix (Range named FX)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]EUR[/TD]
[TD]1.1[/TD]
[TD]1.2[/TD]
[TD]1.3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]HKD[/TD]
[TD]0.13[/TD]
[TD]0.14[/TD]
[TD]0.15[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]USD[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Essentially what I would like to find is one formula to Sum the products from column C, D, and the index match according to FX the range.
In other words
(C1*D1*Indexmatch to find exchange rate according to A1 and B2)+(C2*D2*Indexmatch to find exchange rate according to A2 and B2) etc......
I would like to avoid adding a column that finds the product for each row. Hence I'm asking for a formula to sum all info at once.