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
<tbody>
</tbody>
2. Exchange rate matrix (Range named FX)
<tbody>
</tbody>
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
A | B | C | D | |
Date | Currency | No Unit | Unit Price | |
1 | 05/Jan | EUR | 100 | 1.15 |
2 | 07 Jan | USD | 100 | 20 |
3 | 09 Feb | HKD | 200 | 100 |
4 | 10 Mar | EUR | 300 | 4 |
5 | 28 Mar | USD | 700 | 9 |
<tbody>
</tbody>
2. Exchange rate matrix (Range named FX)
A | B | C | D | |
1 | Jan | Feb | Mar | |
2 | EUR | 1.1 | 1.2 | 1.3 |
3 | HKD | 0.13 | 0.14 | 0.15 |
4 | USD | 1 | 1 | 1 |
<tbody>
</tbody>
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.