I have two columns of data with N data each, being N variable. Be data in column 1: {a1, a2, ....., aN} and in column 2: {b1, b2, .... bN}. Each figure is in one cell
a1 b1
a2 b2
.... ....
.... ....
aN bN
I need an array formula to be able to perform the following calculation:
a1*(1+b1)*(1+b2)*...*(1+bN)+a2*(1+b2)*(1+b3)*...*(1+bN)+.....+aN*(1+bN)
It looks like I need a nested array formula because the arrays in columns 1 and 2 are of variable length (N can vary). For example,iImaging data in columns A and B from rows 1 to 10 (N=10), the formula I tried was:
{=SUMPRODUCT(A1:A10,PRODUCT(1+B1:B10))}
but it didn't work. Excel just multiply every data in column A times (1+b1)*(1+b2)*....*(1+bN)=PRODUCT(1+B1:B10). However I'm looking for a SUMPRODUCT function where in each new factor the multiplication is adding a new element of the form (1+bi) -see formula above-.
I would appreciate your support.
See example attached. I need just one formula. I know it is possible with a helper column or with an UDF, but I'm looking for a formula.
Thanks
a1 b1
a2 b2
.... ....
.... ....
aN bN
I need an array formula to be able to perform the following calculation:
a1*(1+b1)*(1+b2)*...*(1+bN)+a2*(1+b2)*(1+b3)*...*(1+bN)+.....+aN*(1+bN)
It looks like I need a nested array formula because the arrays in columns 1 and 2 are of variable length (N can vary). For example,iImaging data in columns A and B from rows 1 to 10 (N=10), the formula I tried was:
{=SUMPRODUCT(A1:A10,PRODUCT(1+B1:B10))}
but it didn't work. Excel just multiply every data in column A times (1+b1)*(1+b2)*....*(1+bN)=PRODUCT(1+B1:B10). However I'm looking for a SUMPRODUCT function where in each new factor the multiplication is adding a new element of the form (1+bi) -see formula above-.
I would appreciate your support.
See example attached. I need just one formula. I know it is possible with a helper column or with an UDF, but I'm looking for a formula.
Thanks