why does this formula have to be entered as an array formula?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here's the formula:
=SUM((C31:C46)*(E31:E46))-SUM((C47:C51)*(E47:E51)/2)+SUM((C54:C59)*(E54:E59))+SUM((C67:C71)*(E67:E71))

My guess is that these are matrices being multiplied together and matrix
algebra is different than straight multiplication. So, Excel requires
CTRL+SHIFT+ENTER to tell its calculation enginge to do matrix
multiplication....

Am I correct here?

Also: it seems to me that the same calculation can be done with SUMPRODUCT.

Dave
 
Check this site for SUMPRODUCT as an alternative to array functions:

http://xldynamic.com/source/xld.SUMPRODUCT.html
--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| Here's the formula:
| =SUM((C31:C46)*(E31:E46))-SUM((C47:C51)*(E47:E51)/2)+SUM((C54:C59)*(E54:E59))+SUM((C67:C71)*(E67:E71))
|
| My guess is that these are matrices being multiplied together and matrix
| algebra is different than straight multiplication. So, Excel requires
| CTRL+SHIFT+ENTER to tell its calculation enginge to do matrix
| multiplication....
|
| Am I correct here?
|
| Also: it seems to me that the same calculation can be done with SUMPRODUCT.
|
| Dave
|
| --
| Brevity is the soul of wit.
 
=SUM((C31:C46)*(E31:E46))-SUM(...)/2+Sum(...) + Sum(...)

If you wish, you could use just one "Sum" function as in this Array formula.

=SUM(C31:C46*E31:E46,-(C47:C51*E47:E51)/2,C54:C59*E54:E59,C67:C71*E67:E71)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top