J
JE McGimpsey
twaccess said:Rule 1 All ranges within sumproduct function must be the same size.
change "ranges" to "arrays"
=SUMPRODUCT(A1:B2,{1,2;3,4})
works just fine even though it has only one range.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
twaccess said:Rule 1 All ranges within sumproduct function must be the same size.
Rule 1 All ranges within sumproduct function must be the same size.
Rule 2 Ranges cannot be whole columns, i.e. $A:$A, they must be
specific, i.e. $A2:$A200.
Rule 3 Data cannot be read in from ranges outside of the current
spreadsheet. (This is one I made up and may be incorrect !)
4. You have to coerce the boolean values to numbers with a mathematicalWhat other 'simple' rules do others have to add to this ?
Frank Kabel said:5. '--' is more efficient (accroding to some discussions in this NG)
than multiplying the values

twaccess > said:I continue to be fascinated by this function and have printed off copies
of Ken and Aladin's threads on this subject which make for interesting
reading.
However I feel a quick top ten list of simple rules would help me to
avoid making elementary mistakes etc, and maybe of help to others too.
Rule 1 All ranges within sumproduct function must be the same size.
Rule 2 Ranges cannot be whole columns, i.e. $A:$A, they must be
specific, i.e. $A2:$A200.
Rule 3 Data cannot be read in from ranges outside of the current
spreadsheet. (This is one I made up and may be incorrect !)
[...]What other 'simple' rules do others have to add to this ?
I would exclude syntax items here because they are well covered by
others like Ken Wright.
JE McGimpsey said:Whether more efficient or not (it had a small speed advantage in some
test I ran, but the tests weren't controlled), it does(a) use the
tightest binding of operator to operand, and (b) preserve SUMPRODUCT's
ability to treat non-numeric values as zero.

Frank, may I ask what is meant by your point.
- "You have to coerce the boolean values to numbers with a mathematical
operation"-
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.