Etoilebrilliant
New Member
- Joined
- Oct 10, 2017
- Messages
- 5
First off, thank to everyone on this board. In fact the question I'm posing is a variation to a question that was successfully asked here and from which I learnt a lot.
Background: I've been using the following formula for aggregating the product of two arrays where the latter array needs to be presented in reverse order - needless to say it works perfectly
=SUMPRODUCT(OFFSET($C12,0,0,1,C$2),N(OFFSET(Vectors!C7,0,2-COLUMN(Vectors!$B7:B7),1,1)))
Now I want to take the formula to the next stage and use it to aggregate the product of multiple arrays
=SUMPRODUCT(A1,A2,A3:Va,Vb,Vc)
Or rewritten as:
=SUM(V1xVa, V2xVb, V3xVc)
The SUMPRODUCT function is excellent and can deal with multiple arrays natively. The problem arises when I wish to reverse the order of the second set of arrays.
The existing formula (see below) only seems to work with singular arrays
N(OFFSET(Vectors!C7,0,2-COLUMN(Vectors!$B7:B7),1,1)))
Any suggestions. At the moment, I'm inclined to write a user defined function but this seems clumsy. Bear in mind that the number of items of each array will change as per column - so creating a helper field with won't be a solution.
Thanks in Advance
Background: I've been using the following formula for aggregating the product of two arrays where the latter array needs to be presented in reverse order - needless to say it works perfectly
=SUMPRODUCT(OFFSET($C12,0,0,1,C$2),N(OFFSET(Vectors!C7,0,2-COLUMN(Vectors!$B7:B7),1,1)))
Now I want to take the formula to the next stage and use it to aggregate the product of multiple arrays
=SUMPRODUCT(A1,A2,A3:Va,Vb,Vc)
Or rewritten as:
=SUM(V1xVa, V2xVb, V3xVc)
The SUMPRODUCT function is excellent and can deal with multiple arrays natively. The problem arises when I wish to reverse the order of the second set of arrays.
The existing formula (see below) only seems to work with singular arrays
N(OFFSET(Vectors!C7,0,2-COLUMN(Vectors!$B7:B7),1,1)))
Any suggestions. At the moment, I'm inclined to write a user defined function but this seems clumsy. Bear in mind that the number of items of each array will change as per column - so creating a helper field with won't be a solution.
Thanks in Advance