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#)
8 Replies
- 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 Contributor
What is the difference in Excel mechanism behind?
- SergeiBaklanDiamond Contributor
- brodskyfuCopper ContributorI checked the Transpose function, it just looks like that Transpose just rotates the range, but what is the reason behind the difference? I want understand it deeper. Tks~
- brodskyfuCopper ContributorWhat's the simplest formula to sum it up? Tks~