Forum Discussion
brodskyfu
Oct 09, 2024Copper Contributor
Why SUM doesn't work out with dynamic array?
As above
brodskyfu You need to transpose first the range Q7:S7 then multiply and sum.
=SUM(TRANSPOSE(Q7:S7)*R10#)
SUMPRODUCT() will also work.
=SUMPRODUCT(TOCOL(Q7:S7),R10#)
- PeterBartholomew1Silver Contributor
There is also an old mathematical function that performs precisely the calculation you specified.
MMULT is a very fast function but, despite that, I would more often use the other formula
= MMULT(rowArr, colArr#) = SUM(TOCOL(rowArr) * colArr#)
- brodskyfuCopper ContributorTks buddy! Ring a bell in memory~ 🙂
- brodskyfuCopper ContributorWhat's the simplest formula to sum it up? Tks~