Difference between revisions of "Manuals/calci/SUMPRODUCT"

From ZCubes Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<div style="font-size:30px">'''SUMPRODUCT()'''</div><br/>
 +
*Parameters are arrays whose values are to be multiplied and then added.
 +
**SUMPRODUCT(), returns the sum of the products of corresponding array components.
 +
 +
== Description ==
 +
 +
SUMPRODUCT()
 +
 +
*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.
 +
*Parameters should be of same dimensions, else Calci displays #N/A error message.
 +
*Non-numeric values are considered zero (0).
 +
 +
== Examples ==
 +
 
<div id="6SpaceContent" class="zcontent" align="left">
 
<div id="6SpaceContent" class="zcontent" align="left">
  
'''SUMPRODUCT'''(Array1, Array2...............)
+
{| 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'''
  
where,
+
|- 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
  
'''Array1, Array2.........''' - represents the arrays which first multiply and add.
+
|- 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
  
<div id="1SpaceContent" class="zcontent" align="left">
+
|- 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
  
</div>
+
|- class="even"
----
+
| class="sshl_f" |
It returns the sum of multiplies corresponding values in the arrays.
+
| class="sshl_f" |
 +
| class="sshl_f" |
 +
| class="sshl_f" |
 +
| class="sshl_f" |
 +
| class="sshl_f" |
  
<div id="7SpaceContent" class="zcontent" align="left">
+
|}
  
If Array1,Array2....... have different number of values, SUMPRODUCT returns the #ERROR.
+
=SUMPRODUCT(A2:B4,C2:D4) : Calculates SUMPRODUCT of Array1 and Array2 as ((1*7)+(2*8)+(3*9)+(4*7)+(5*8)+(6*9)). <br />Returns '''172''' as a result.
 +
=SUMPRODUCT(A2:B4,E2:F4) : Calculates SUMPRODUCT of Array1 and Array3 as <br />((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 SUMPRODUCT of Array1, Array2 and Array3 as <br />((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 '''-9''' as a result.
  
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
+
==Related Videos==
  
SUMPRODUCT
+
{{#ev:youtube|rwsX1KVhEnU|280|center|SUMPRODUCT}}
  
</div></div>
+
==See Also==
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column3, Row1)
+
*[[Manuals/calci/SUM | SUM]]
 +
*[[Manuals/calci/PRODUCT | PRODUCT]]
  
<nowiki>=SUMPRODUCT(R1C1:R3C2,R4C1: R6C2)</nowiki>
+
==References==
  
SUMPRODUCT returns 298.
+
*[http://en.wikipedia.org/wiki/Product_(mathematics) Product]
 +
*[http://en.wikipedia.org/wiki/Summation Summation]
  
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
 
|- class="even"
+
*[[Z_API_Functions | List of Main Z Functions]]
| class=" " |
+
 
| Column1
+
*[[ Z3 |   Z3 home ]]
| class="    " | Column2
 
| class="    " | Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 1
 
| class=" " | 7
 
| class="sshl_f" | 298
 
| class=" " |
 
|- class="even"
 
| class="  " | Row2
 
| class=" " | 2
 
| class=" " | 8
 
| class="  SelectTD ChangeBGColor SelectTD" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">
 
| class=" " |
 
|- class="odd"
 
| Row3
 
| class=" " | 3
 
| class=" " | 9
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class="                                                sshl_f " | 4
 
| class=" " | 10
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " | 5
 
| class=" " | 11
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " | 6
 
| class=" " | 12
 
| class=" " |
 
| class=" " |
 

Latest revision as of 15:47, 21 August 2018

SUMPRODUCT()


  • Parameters are arrays whose values are to be multiplied and then added.
    • SUMPRODUCT(), returns the sum of the products of corresponding array components.

Description

SUMPRODUCT()

  • 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.
  • Parameters 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 SUMPRODUCT of Array1 and Array2 as ((1*7)+(2*8)+(3*9)+(4*7)+(5*8)+(6*9)). 
Returns 172 as a result. =SUMPRODUCT(A2:B4,E2:F4) : Calculates SUMPRODUCT of Array1 and Array3 as
((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 SUMPRODUCT of Array1, Array2 and Array3 as
((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 -9 as a result.

Related Videos

SUMPRODUCT

See Also

References