Difference between revisions of "Manuals/calci/SUMIF"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''SUMIF (Array,Condition,SumArray)'''</div><br/>
 +
where
 +
*<math>Array</math> is the range of cells that is evaluated by the specified criteria,
 +
*<math>Condition</math> is a condition to evaluate in the form of a number, expression or text, and
 +
*<math>SumArray</math> is the actual range of cells to be added.
 +
**SUMIF(), adds the cells specified by a given criteria.
  
Syntax
+
== Description ==
  
</div></div>
+
SUMIF (Array,Condition,SumArray)
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
For Example,
  
</div></div>
+
SUMIF([10,20,30],">15", [50,60,70]) ''returns 130''
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
In above example, Calci checks for the values > 15 in first array (20 and 30) and returns the sum of corresponding values in second array (60 and 70) and displays '''130''' as a result.
  
</div></div>
+
*Blank values in <math>Array</math> are ignored.
----
+
*<math>Condition</math> can be in the form of a number, expression, a cell reference, function or text. Expression, function or text criteria should be written in double quotation marks (e.g. ">30" or "A2+A3<100" or "Banana").
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">SUMIF</font> </font>'''</div></div>
+
*Argument <math>SumArray</math> is an optional. It specifies the range of cells to add if the mentioned condition is satisfied.
----
+
*If <math>SumArray</math> is omitted, Calci adds the values in the same range for which criteria is applied.
<div id="3SpaceContent" class="zcontent" align="left"><br /><div id="7Space" class="gamizbox" title="7Space"><div id="7SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="7SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="7SpaceRollupContent" align="center"></span></span></div><div id="7SpaceCover"><div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3" face="Times New Roman"> </font>
+
*<math>SumArray</math> and <math>Array</math> can be of different sizes. The actual cell to be added are determined by using upper leftmost cell in <math>SumArray</math> as the beginning cell, till the cells corresponding in size and shape to <math>Array</math>.
 +
*If <math>Condition</math> is not satisfied, Calci displays zero (0) as a result.
  
'''SUMIF'''(a1:a4, '''c''', R)
+
== Examples ==
  
'''a1:a4'''   is the range of cells that you want evaluated by the given criteria.
+
<div id="6SpaceContent" class="zcontent" align="left">
  
'''C''' is the criteria in the form of a number, expression, or text
+
{| id="TABLE3" class="SpreadSheet blue"
 +
|- class="even"
 +
| class="  " | '''Fruit'''
 +
| class="  " | '''Quantity'''
 +
| class="  " | '''Price'''
 +
| class="  " |
  
'''R'''   are the actual cells to add
+
|- class="odd"
 +
| class="sshl_f" | Orange
 +
| class="sshl_f" | 20
 +
| class="sshl_f" | $10
 +
| class="sshl_f" |
  
</div></div>
+
|- class="even"
----
+
| class="sshl_f" | Apple
<div id="14SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="5Space" class="gamizbox" title="5Space"><div id="5SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="5SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="5SpaceRollupContent" align="center"></span></span></div><div id="5SpaceCover"><div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
+
| class="sshl_f" | 10
 +
| class="sshl_f" | $15
 +
| class="sshl_f" |
  
<font size="3"><font face="Times New Roman">This function calculate the cells specified by a given criteria.</font></font>
+
|- class="odd"
 +
| class="sshl_f" | Banana
 +
| class="sshl_f" | 15
 +
| class="sshl_f" | $5
 +
| class="sshl_f" |
  
</div></div>
+
|- class="even"
----
+
| class="sshl_f" | Mango
<div id="12SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="9Space" class="gamizbox" title="9Space"><div id="9SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="9SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="9SpaceRollupContent" align="center"></span></span></div><div id="9SpaceCover"><div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman">
+
| class="sshl_f" | 10
 +
| class="sshl_f" | $15
 +
| class="sshl_f" |
 +
 
 +
|- class="odd"
 +
| class="sshl_f" | Pear
 +
| class="sshl_f" | 15
 +
| class="sshl_f" | $20
 +
| class="sshl_f" |
 +
 
 +
|- class="even"
 +
| class="sshl_f" |
 +
| class="sshl_f" |
 +
| class="sshl_f" |
 +
| class="sshl_f" |
 +
|}
  
C1             C2
+
=SUMIF(B2:B6,"10",C2:C6) : Checks for the fruits with Quantity equal to '10' and adds the corresponding prices. <br />Returns '''30''' as a result.
 +
=SUMIF(B2:B6,">10") : Adds up the quantity of fruits that are greater than '10'. Returns '''50''' as a result.
 +
=SUMIF(A2:A6,"=Pear",C2:C6) : checks for the Pear fruit in the list and adds the price. Returns '''20''' as a result.
  
R1          1000           100
+
==Related Videos==
 +
{{#ev:youtube|v=V1acCft4fzY|280|center|SUMIF}}
  
R2           9000           300
+
==See Also==
  
R3           8000           250
+
*[[Manuals/calci/SUM | SUM]]
 +
*[[Manuals/calci/COUNTIF  | COUNTIF]]
  
R4            12000        500
+
==References==
 +
*[http://en.wikipedia.org/wiki/Summation SUM]
  
<nowiki>=SUMIF(C1R1:C1R4,"&gt;5000",C2R1:C2R4) is 1050</nowiki>
 
  
</font></font></div></div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left"><div>
 
  
{| id="TABLE1" class="SpreadSheet blue"
+
*[[Z_API_Functions | List of Main Z Functions]]
|- class="even"
 
| class="  SelectTD SelectTD" |
 
<div id="1Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="1Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| Column1
 
| class="    " | Column2
 
| class="  " | Column3
 
| class="  " | Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f " | 1000
 
| class="sshl_f " | 100
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 9000
 
| class="sshl_f" | 300
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f" | 8000
 
| class="sshl_f" | 250
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class=" " | 12000
 
| class="sshl_f " | 500
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class=" " | Row5
 
| class="sshl_f" |
 
| class="sshl_f" | 1050
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
  
<div align="left"></div>''''''</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 
</div></div></div></div></div></div></div></div></div>
 

Latest revision as of 15:35, 21 November 2018

SUMIF (Array,Condition,SumArray)


where

  • is the range of cells that is evaluated by the specified criteria,
  • is a condition to evaluate in the form of a number, expression or text, and
  • is the actual range of cells to be added.
    • SUMIF(), adds the cells specified by a given criteria.

Description

SUMIF (Array,Condition,SumArray)

For Example,

SUMIF([10,20,30],">15", [50,60,70]) returns 130

In above example, Calci checks for the values > 15 in first array (20 and 30) and returns the sum of corresponding values in second array (60 and 70) and displays 130 as a result.

  • Blank values in are ignored.
  • can be in the form of a number, expression, a cell reference, function or text. Expression, function or text criteria should be written in double quotation marks (e.g. ">30" or "A2+A3<100" or "Banana").
  • Argument is an optional. It specifies the range of cells to add if the mentioned condition is satisfied.
  • If is omitted, Calci adds the values in the same range for which criteria is applied.
  • and can be of different sizes. The actual cell to be added are determined by using upper leftmost cell in as the beginning cell, till the cells corresponding in size and shape to .
  • If is not satisfied, Calci displays zero (0) as a result.

Examples

Fruit Quantity Price
Orange 20 $10
Apple 10 $15
Banana 15 $5
Mango 10 $15
Pear 15 $20
=SUMIF(B2:B6,"10",C2:C6) : Checks for the fruits with Quantity equal to '10' and adds the corresponding prices. 
Returns 30 as a result. =SUMIF(B2:B6,">10") : Adds up the quantity of fruits that are greater than '10'. Returns 50 as a result. =SUMIF(A2:A6,"=Pear",C2:C6) : checks for the Pear fruit in the list and adds the price. Returns 20 as a result.

Related Videos

SUMIF

See Also

References