Difference between revisions of "Manuals/calci/INDEX"
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=...") |
|||
Line 1: | Line 1: | ||
− | + | =INDEX(ref, rnum, cnum)= | |
− | + | *where, <math>ref</math> is the reference to one or more cell ranges or an array | |
+ | *<math>rnum</math> is the row number in reference | ||
+ | *<math>cnum</math> is the column number in reference | ||
− | + | INDEX() function displays the reference of the cell at intersection of particular row and column. | |
− | |||
− | |||
− | + | == Description == | |
− | + | INDEX(ref, rnum, cnum) | |
− | |||
− | |||
− | |||
− | |||
− | < | + | *This function displays the cell that is at the intersection of specified row and column number in an array or reference. |
+ | *<math>ref</math> can be an array or range of cells. | ||
+ | *If <math>rnum</math> is omitted, <math>cnum</math> is required. Calci displays entire column in the selected range. | ||
+ | *If <math>cnum</math> is omitted, <math>rnum</math> is required. Calci displays entire row in the selected range. | ||
+ | *If <math>rnum</math> and <math>cnum</math> 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 - | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<div id="1SpaceContent" class="zcontent" align="left"> | <div id="1SpaceContent" class="zcontent" align="left"> | ||
Line 40: | Line 24: | ||
|- class="even" | |- class="even" | ||
| class=" " | | | class=" " | | ||
− | | | + | | class="sshl_f" | Name |
− | | class=" | + | | class="sshl_f" | Age |
− | | class=" | + | | class="sshl_f" | Salary |
− | | | + | | class="sshl_f" | |
+ | |||
|- class="odd" | |- class="odd" | ||
− | | class=" " | Row1 | + | | class="sshl_f" | Row1 |
− | | class="sshl_f " | | + | | class="sshl_f" | John |
− | | class="sshl_f" | | + | | class="sshl_f" | 32 |
− | | class="sshl_f" | | + | | class="sshl_f" | 6000 |
− | | class=" | + | | class="sshl_f" | |
+ | |||
|- class="even" | |- class="even" | ||
− | | class=" | + | | class="sshl_f" | Row2 |
− | | class="sshl_f" | | + | | class="sshl_f" | Sally |
− | | class="sshl_f" | | + | | class="sshl_f" | 40 |
− | | class="sshl_f" | | + | | class="sshl_f" | 6600 |
− | | class=" | + | | class="sshl_f" | |
− | + | ||
|- class="odd" | |- class="odd" | ||
− | | Row3 | + | | class="sshl_f" | Row3 |
− | | class="sshl_f" | | + | | class="sshl_f" | David |
− | | class="sshl_f" | | + | | class="sshl_f" | 28 |
− | | class="sshl_f" | | + | | class="sshl_f" | 4500 |
| class=" " | | | class=" " | | ||
+ | |||
|- class="even" | |- class="even" | ||
− | | Row4 | + | | class="sshl_f" | Row4 |
− | | class="sshl_f" | | + | | class="sshl_f" | Marie |
− | | class="sshl_f" | | + | | class="sshl_f" | 28 |
− | | class=" " | | + | | class="sshl_f" | 5000 |
− | | class=" " | | + | | class="sshl_f" | |
+ | |||
|- class="odd" | |- class="odd" | ||
− | | class=" " | Row5 | + | | class="sshl_f" | Row5 |
− | | class="sshl_f" | | + | | class="sshl_f" | |
− | | class=" | + | | class="sshl_f" | |
− | | class=" " | | + | | class="sshl_f" | |
− | | class=" | + | | class="sshl_f" | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | + | =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({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. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == See Also == | |
+ | *[[Manuals/calci/OFFSET | OFFSET]] | ||
+ | *[[Manuals/calci/ROW | ROW]] | ||
+ | *[[Manuals/calci/COLUMN | COLUMN]] | ||
− | + | == Reference == | |
− | + | *[http://en.wikipedia.org/wiki/Concatenation Concatenation] |
Revision as of 08:09, 31 December 2013
INDEX(ref, rnum, cnum)
- 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 displays the reference of the cell at intersection of particular row and column.
Description
INDEX(ref, rnum, cnum)
- 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.
- If is omitted, is required. Calci displays entire column in the selected range.
- If is omitted, 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({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.