Hello,
I need to sum the product of two arrays.
In the first array the column number to use in multiplication is known, however in the second one the column to select depends on value from another column in first array.
Here is an example:
Array A:
Name Amount Final Period A 10 4 1 A 20 4 2 B 30 4 3
Array B:
Name 1 2 3 A 0.5 0.2 0.3 B 0.8 0.1 0.1
Finally for row number 1 in Array A i need to find corresponding value in Array B (matching Name and column header = Final - Period from Array A) and multiply it by Amount from Array A.
At the end the function should return a sum of all calculations, which for the example above is: 10 * ArrayB(A,3) + 20 * ArrayB(A,2) + 30 * ArrayB(B,1).
Is it possible to use standard formulas and functions to receive that?
Looking forward for your help![]()
Bookmarks