Difference between revisions of "Manuals/calci/INDEX"

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=...")
 
 
(9 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">'''INDEX (Ranges,Row,Column,RangeIndex) '''</div><br/>
 +
*where, <math>Ranges</math> is the reference to one or more cell ranges or an array
 +
*<math>Row</math> is the row number in reference
 +
*<math>Column</math> is the column number in reference
 +
**INDEX(), function uses an index to choose a value from a reference or array.
  
Syntax
+
== Description ==
  
</div></div>
+
INDEX (Ranges,Row,Column,RangeIndex)
----
+
*This function displays the cell that is at the intersection of specified row and column number in an array or reference.
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
*<math>Ranges</math> can be an array or range of cells.
 +
*<math>Row</math> and <math>Column</math> should represent row number and column number respectively in the reference range.
 +
*If <math>Row</math> or <math>Column</math> is omitted, Calci displays #NULL error message.
 +
*If <math>Row</math> is zero(0), <math>Column</math> is required. Calci displays entire column in the selected range.
 +
*If <math>Column</math> is zero(0), <math>Row</math> is required. Calci displays entire row in the selected range.
 +
*If <math>Row</math> and <math>Column</math> do not point to a cell within an array or reference, Calci displays #NULL error message.
  
Examples-1
+
== Examples ==
 
+
Consider the following example in Calci of employee information -
</div></div>
 
----
 
<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>
 
 
 
</div></div>
 
----
 
<div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">This function gives the reference of the cell at the intersection of a particular row and column. If the reference is made up of nonadjacent selections, you can pick the selection to look in.</font></font></font></div></div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6">INDEX</font></div></div>
 
----
 
<div id="6SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Reference form</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''INDEX'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''ref'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,RN,CN,AN)</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''where ref '''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">is a reference to one or more cell ranges,</font></font></font>
 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">RN   is the number of the row in reference ,CN</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">    is the number of the column in reference from which to return a reference,AN</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">  selects a range in reference from which to return the intersection of RN and CN. </font></font></font>
 
 
 
</div></div>
 
----
 
 
<div id="1SpaceContent" class="zcontent" align="left">
 
<div id="1SpaceContent" class="zcontent" align="left">
  
Line 40: Line 23:
 
|- class="even"
 
|- class="even"
 
| class=" " |
 
| class=" " |
| Column1
+
| class="sshl_f" | '''Name'''
| class="   " | Column2
+
| class="sshl_f" | '''Age'''
| class=" " | Column3
+
| class="sshl_f" | '''Salary'''
| Column4
+
| class="sshl_f" |
 +
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" | Row1
| class="sshl_f " | Grapes
+
| class="sshl_f" | John
| class="sshl_f" | .49
+
| class="sshl_f" | 32
| class="sshl_f" | 50
+
| class="sshl_f" | 6000
| class="       sshl_f " |
+
| class="sshl_f" |
 +
 
 
|- class="even"
 
|- class="even"
| class=" " | Row2
+
| class="sshl_f" | Row2
| class="sshl_f" | Guava
+
| class="sshl_f" | Sally
| class="sshl_f" | 0.50
+
| class="sshl_f" | 40
| class="sshl_f" | 30
+
| class="sshl_f" | 6600
| class=" SelectTD" |
+
| class="sshl_f" |
<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>
+
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="sshl_f" | Row3
| class="sshl_f" | watermelon
+
| class="sshl_f" | David
| class="sshl_f" | 0.55
+
| class="sshl_f" | 28
| class="sshl_f" | 25
+
| class="sshl_f" | 4500
 
| class=" " |
 
| class=" " |
 +
 
|- class="even"
 
|- class="even"
| Row4
+
| class="sshl_f" | Row4
| class="sshl_f" | Pineapple
+
| class="sshl_f" | Marie
| class="sshl_f" | 0.45
+
| class="sshl_f" | 28
| class=" " | 15
+
| class="sshl_f" | 5000
| class=" " |
+
| class="sshl_f" |
 +
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row5
+
| class="sshl_f" | Row5
| class="sshl_f" | 25
+
| class="sshl_f" |  
| class="                                                                         " |
+
| class="sshl_f" |
| class=" " |
+
| class="sshl_f" |
| class=" " |
+
| class="sshl_f" |
|- class="even"
 
| Row6
 
| class="                                                                                                                            sshl_f " |
 
| class="  " |
 
| class=" " |
 
| class=" " |
 
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
=INDEX(A1:C4,3,2) :Calculates intersection in the range A1 TO C4 for third row, second column. Returns David's age '''28'''.
----
+
=INDEX(A1:C4,2,1) :Calculates intersection in the range A1 TO C4 for second row, first column. Returns '''Sally''' as output.
<div id="4SpaceContent" class="zcontent" align="left">  <font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example in Column1Row1:Column3Row4</font></font></font>
+
=INDEX(A2:C3,1,3) :Calculates intersection in the range A2 TO C3 for first row, third column.Returns Sally's salary '''6600'''.
 +
=INDEX(A1:C4,0,2) :Displays the entire Age column in the range A1 to C4. Returns '''32,40,28,28''' as output.
 +
=INDEX([5,10,15;20,25,30;35,40,45],2,3) : Calculates intersection in an array of numbers for second row, third column. Returns '''30''' as output.
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e</font></font></font>
+
==Related Videos==
  
<font color="#484848" face="Arial">'''B                      C              D'''</font>
+
{{#ev:youtube|Se_HcWILzKU|280|center|INDEX}}
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Grapes             .      49                  50</font></font></font>
+
== See Also ==
 +
*[[Manuals/calci/OFFSET | OFFSET]]
 +
*[[Manuals/calci/ROW | ROW]]
 +
*[[Manuals/calci/COLUMN | COLUMN]]
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Guava                   0.50                  30</font></font></font>
+
== Reference ==
 +
*[http://en.wikipedia.org/wiki/Database_index Database Index]
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Water Melon        0.55                   25</font></font></font>
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Pine Apple            0.45                  15</font></font></font>
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e. =INDEX(Column1Row1:Column3Row4,3,3) is 25</font></font></font>
+
*[[Z_API_Functions | List of Main Z Functions]]
  
</div>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 15:25, 9 August 2018

INDEX (Ranges,Row,Column,RangeIndex)


  • where, is the reference to one or more cell ranges or an array
  • is the row number in reference
  • is the column number in reference
    • INDEX(), function uses an index to choose a value from a reference or array.

Description

INDEX (Ranges,Row,Column,RangeIndex)

  • This function displays the cell that is at the intersection of specified row and column number in an array or reference.
  • can be an array or range of cells.
  • and should represent row number and column number respectively in the reference range.
  • If or is omitted, Calci displays #NULL error message.
  • If is zero(0), is required. Calci displays entire column in the selected range.
  • If is zero(0), is required. Calci displays entire row in the selected range.
  • If and do not point to a cell within an array or reference, Calci displays #NULL error message.

Examples

Consider the following example in Calci of employee information -

Name Age Salary
Row1 John 32 6000
Row2 Sally 40 6600
Row3 David 28 4500
Row4 Marie 28 5000
Row5
=INDEX(A1:C4,3,2) :Calculates intersection in the range A1 TO C4 for third row, second column. Returns David's age 28.
=INDEX(A1:C4,2,1) :Calculates intersection in the range A1 TO C4 for second row, first column. Returns Sally as output.
=INDEX(A2:C3,1,3) :Calculates intersection in the range A2 TO C3 for first row, third column.Returns Sally's salary 6600.
=INDEX(A1:C4,0,2) :Displays the entire Age column in the range A1 to C4. Returns 32,40,28,28 as output.
=INDEX([5,10,15;20,25,30;35,40,45],2,3) : Calculates intersection in an array of numbers for second row, third column. Returns 30 as output.

Related Videos

INDEX

See Also

Reference