Home > Blockchain >  ArrayFormula for SUMPRODUCT of mismatched arrays
ArrayFormula for SUMPRODUCT of mismatched arrays

Time:01-20

I have a grid of hours and an array of rates. I'd like the array E2:E10 to be the sumproduct of the hours and the transposed RATES array.

Can someone help with the ArrayFormula?

I can easily do =SUMPRODUCT(TRANSPOSE(A2:D2),$I$2:$I$5) for E2 but it'd be more elegant to do an ArrayFormula that does the whole column if possible.

ScreenShot

CodePudding user response:

Using BYROW and LAMBDA there is no need for ArrayFormula():

=BYROW(A2:D10,LAMBDA(a,SUMPRODUCT(a,TRANSPOSE($I$2:$I$5))))

enter image description here

  • Related