Difference between revisions of "Manuals/calci/SUMPRODUCT"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | =SUMPRODUCT(arr1, arr2, .....)= | ||
+ | *where <math>arr1, arr2, .....</math> are arrays whose values are to be multiplied and then added. | ||
− | + | SUMPRODUCT() multiplies the corresponding array values and displays their sum as a result. | |
− | |||
+ | == Description == | ||
− | + | SUMPRODUCT(arr1, arr2, .....) | |
− | |||
− | + | *This function first multiplies the corresponding values in respective arrays and then adds the product values to display the result. | |
− | < | + | *Argument <math>arr1, arr2, .....</math> are the numbers to be multiplied and then added. |
+ | *<math>arr1, arr2, .....</math> should be of same dimensions, else Calci displays #N/A error message. | ||
+ | *Non-numeric values are considered zero (0). | ||
− | ==Examples== | + | == Examples == |
− | |||
− | |||
− | + | <div id="6SpaceContent" class="zcontent" align="left"> | |
− | < | ||
− | + | {| id="TABLE3" class="SpreadSheet blue" | |
+ | |- class="even" | ||
+ | | class=" " | '''Array 1''' | ||
+ | | class=" " | '''Array 1''' | ||
+ | | class=" " | '''Array 2''' | ||
+ | | class=" " | '''Array 2''' | ||
+ | | class=" " | '''Array 3''' | ||
+ | | class=" " | '''Array 3''' | ||
− | + | |- class="odd" | |
− | + | | class="sshl_f" |1 | |
− | + | | class="sshl_f" |4 | |
− | + | | class="sshl_f" |7 | |
− | + | | class="sshl_f" |7 | |
− | + | | class="sshl_f" |-1 | |
− | + | | class="sshl_f" |-4 | |
− | + | ||
− | + | |- class="even" | |
− | + | | class="sshl_f" |2 | |
− | + | | class="sshl_f" |5 | |
− | + | | class="sshl_f" |8 | |
− | + | | class="sshl_f" |8 | |
− | + | | class="sshl_f" |-2 | |
− | + | | class="sshl_f" |-5 | |
− | + | ||
− | + | |- class="odd" | |
− | + | | class="sshl_f" |3 | |
− | + | | class="sshl_f" |6 | |
− | + | | class="sshl_f" |9 | |
− | + | | class="sshl_f" |9 | |
− | + | | class="sshl_f" |-3 | |
− | + | | class="sshl_f" |-6 | |
− | + | ||
− | + | |- class="even" | |
− | + | | class="sshl_f" | | |
− | + | | class="sshl_f" | | |
− | + | | class="sshl_f" | | |
− | + | | class="sshl_f" | | |
− | + | | class="sshl_f" | | |
− | + | | class="sshl_f" | | |
− | + | ||
− | + | |} | |
− | + | ||
− | + | =SUMPRODUCT(A2:B4,C2:D4) : Calculates ((1*7)+(2*8)+(3*9)+(4*7)+(5*8)+(6*9)). <br />Returns '''172''' as a result. | |
− | + | =SUMPRODUCT(A2:B4,E2:F4) : Calculates ((1*-1)+(2*-2)+(3*-3)+(4*-4)+(5*-5)+(6*-6)). <br />Returns '''-91''' as a result. | |
− | + | =SUMPRODUCT(A2:B4,C2:D4,E2:F4) : Calculates ((1*7*-1)+(2*8*-2)+(3*9*-3)+(4*7*-4)+(5*8*-5)+(6*9*-6)). <br />Returns '''-756''' as a result. | |
− | + | =SUMPRODUCT([2,6],[1.5,-2]) : Calculates ((2*1.5)+(6*-2)). Returns '''-3''' as a result. | |
− | + | ||
− | + | ==See Also== | |
− | + | ||
− | + | *[[Manuals/calci/SUM | SUM]] | |
− | + | *[[Manuals/calci/PRODUCT | PRODUCT]] | |
− | + | ||
+ | ==References== | ||
+ | |||
+ | *[http://en.wikipedia.org/wiki/Product_(mathematics) Product] | ||
+ | *[http://en.wikipedia.org/wiki/Summation Summation] |
Revision as of 16:22, 21 February 2014
SUMPRODUCT(arr1, arr2, .....)
- where are arrays whose values are to be multiplied and then added.
SUMPRODUCT() multiplies the corresponding array values and displays their sum as a result.
Description
SUMPRODUCT(arr1, arr2, .....)
- This function first multiplies the corresponding values in respective arrays and then adds the product values to display the result.
- Argument are the numbers to be multiplied and then added.
- should be of same dimensions, else Calci displays #N/A error message.
- Non-numeric values are considered zero (0).
Examples
Array 1 | Array 1 | Array 2 | Array 2 | Array 3 | Array 3 |
1 | 4 | 7 | 7 | -1 | -4 |
2 | 5 | 8 | 8 | -2 | -5 |
3 | 6 | 9 | 9 | -3 | -6 |
=SUMPRODUCT(A2:B4,C2:D4) : Calculates ((1*7)+(2*8)+(3*9)+(4*7)+(5*8)+(6*9)).
Returns 172 as a result. =SUMPRODUCT(A2:B4,E2:F4) : Calculates ((1*-1)+(2*-2)+(3*-3)+(4*-4)+(5*-5)+(6*-6)).
Returns -91 as a result. =SUMPRODUCT(A2:B4,C2:D4,E2:F4) : Calculates ((1*7*-1)+(2*8*-2)+(3*9*-3)+(4*7*-4)+(5*8*-5)+(6*9*-6)).
Returns -756 as a result. =SUMPRODUCT([2,6],[1.5,-2]) : Calculates ((2*1.5)+(6*-2)). Returns -3 as a result.