Hi all,
Why is it that I can SUM a cell (or cells) across multiple sheets, but not use SUMPRODUCT in the same fashion?
In the sample file, attached, imagine that a stock brokerage account contains holdings in three different companies. The account's holdings are each on a worksheet dedicated to that company's stock. The sheet "Total Acct Value" is where a summary of the account is kept.
On sheet "Total Acct Value", in cell B1, the formula
Why is it that I can SUM a cell (or cells) across multiple sheets, but not use SUMPRODUCT in the same fashion?
In the sample file, attached, imagine that a stock brokerage account contains holdings in three different companies. The account's holdings are each on a worksheet dedicated to that company's stock. The sheet "Total Acct Value" is where a summary of the account is kept.
On sheet "Total Acct Value", in cell B1, the formula
=SUM('Stock 1:Stock 3'!B1)
works just fine. On the other hand, in cell B2, the formula SUMPRODUCT('Stock 1:Stock 3'!B1,'Stock 1:Stock 3'!B2)
results in a #VALUE
error. My questions are:- Why does SUM work and SUMPRODUCT doesn't?
- It seems that Excel doesn't consider a multiple sheet selection to be an array (because it's 3-dimensional rather than 2-dimensional, maybe)? If not an array (as the term is used in 'new' Excel, what is a 1x1xN (where N is the number of sheets selected) set of cells considered to be? A range? Something else?
- The sample file contains a simplified version of a problem I'm having with a much more complex workbook, but the essence is the same. I want to extract 2 bits of data from multiple worksheets, multiply them together, then get a grand total on a summary sheet. Doing the intermediate math on the subordinate sheets and then summing on the summary sheet seems inelegant. Is there a better way to do this?