Difference between revisions of "Manuals/calci/INDIRECT"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''INDIRECT'''(reference_text, ReferenceStyle) where, '''reference_text '''- represents a reference to a cell ...")
 
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
=INDIRECT(ReferenceText, ReferenceStyle)=
  
'''INDIRECT'''(reference_text, ReferenceStyle)
+
*where, <math>ReferenceText</math> represents reference to a cell as a text string
 +
*<math>ReferenceStyle</math> is a logical value that specifies the type of reference in ReferenceText
  
where,
+
INDIRECT() displays the value referenced indirectly by a text string.
  
'''reference_text '''- represents a reference to a cell asa text string.
+
== Description ==
  
'''ReferenceStyle''' - is a logical value that specifies the type of reference contain in the cell reference_text.
+
INDIRECT(ReferenceText, ReferenceStyle)
  
If ReferenceStyle is true or omitted, reference_textis interpreted as an A1-style reference.
+
*INDIRECTION is the ability to reference something using a name, reference, or container instead of value itself.
 +
*<math>ReferenceText</math> can be a reference to a cell as text string, A1 style reference, and R1C1 style reference or a name defined as a reference.
 +
*If *<math>ReferenceText</math> is invalid, Calci displays an error message.
 +
*If <math>ReferenceText</math> refers to a cell outside the column limit, Calci displays and error message.
 +
*<math>ReferenceStyle</math> can be a logical value TRUE or FALSE. If omitted, Calci assumes it to be TRUE.
 +
*If <math>ReferenceStyle</math> is TRUE, Calci interprets <math>ReferenceText</math> as A1-style reference.
 +
*If <math>ReferenceStyle</math> is FALSE, Calci interprets <math>ReferenceText</math> as R1C1-style reference.
  
</div>
+
== Examples ==
----
+
Consider the following table with Columns A as data point and Column B as array input for MOVINGAVERAGE() function.
<div id="1SpaceContent" class="zcontent" align="left">Returns the reference specified by a text string.</div>
 
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
If  reference_text is not a valid cell reference, INDIRECT returns #ERROR.
 
 
</div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
 
INDIRECT
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
 
Lets see an example in (Column1, Row3)
 
 
<nowiki>=INDIRECT(TABLE3!$B$2,TRUE)</nowiki>
 
 
INDIRECT returns SMITH.
 
 
</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">
 
<div id="2SpaceContent" class="zcontent" align="left">
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
 +
| class="sshl_f" | '''Reference Data'''
 +
| class=" " | '''Data'''
 
| class=" " |
 
| class=" " |
| Column1
+
 
| Column2
 
| Column3
 
| Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" | B2
| class="sshl_f " | SMITH
+
| class=" " |5667
| class="                              " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 +
 
|- class="even"
 
|- class="even"
| class="  " | Row2
+
| class="sshl_f" | B3
| class="sshl_f " | TABLE3!$B$2
+
| class=" " |SMITH
| class=" " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 +
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="sshl_f" | ZCUBES
| class="sshl_f" | SMITH
+
| class=" " |Calci
| class=" " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 +
 
|- class="even"
 
|- class="even"
| Row4
+
| class="sshl_f" | 5
| class="                      SelectTD ChangeBGColor SelectTD" |
+
| class=" " |60
<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.">[[Image:copy-cube.gif]]  </div>
 
| class="   " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 +
 
|- class="odd"
 
|- class="odd"
| class=" " | Row5
+
| class="sshl_f" |  
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " |
 
| class=" " |
 
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
=INDIRECT($A$2) : Reads the reference value in A2 that points to B2. Displays the data value in cell B2 '''5667''' as output.
----
+
=INDIRECT($A$3,TRUE) : Reads the reference value in A3 that points to B3. Displays the data value in cell B3 '''SMITH''' as output.
 +
=INDIRECT($A$4, TRUE) : Displays empty cell referring to B4.
 +
=INDIRECT("B"&A5, FALSE) : Displays '''60'''
 +
 
 +
== See Also ==
 +
 
 +
*[[Manuals/calci/INDEX | INDEX]]
 +
 
 +
== References ==
 +
 
 +
*[http://en.wikipedia.org/wiki/Indirection Indirection]
 +
*[http://en.wikipedia.org/wiki/Reference_(computer_science) Reference]

Revision as of 20:25, 10 January 2014

INDIRECT(ReferenceText, ReferenceStyle)

  • where, represents reference to a cell as a text string
  • is a logical value that specifies the type of reference in ReferenceText

INDIRECT() displays the value referenced indirectly by a text string.

Description

INDIRECT(ReferenceText, ReferenceStyle)

  • INDIRECTION is the ability to reference something using a name, reference, or container instead of value itself.
  • can be a reference to a cell as text string, A1 style reference, and R1C1 style reference or a name defined as a reference.
  • If * is invalid, Calci displays an error message.
  • If refers to a cell outside the column limit, Calci displays and error message.
  • can be a logical value TRUE or FALSE. If omitted, Calci assumes it to be TRUE.
  • If is TRUE, Calci interprets as A1-style reference.
  • If is FALSE, Calci interprets as R1C1-style reference.

Examples

Consider the following table with Columns A as data point and Column B as array input for MOVINGAVERAGE() function.

Reference Data Data
B2 5667
B3 SMITH
ZCUBES Calci
5 60
=INDIRECT($A$2) : Reads the reference value in A2 that points to B2. Displays the data value in cell B2 5667 as output.
=INDIRECT($A$3,TRUE) : Reads the reference value in A3 that points to B3. Displays the data value in cell B3 SMITH as output.
=INDIRECT($A$4, TRUE) : Displays empty cell referring to B4.
=INDIRECT("B"&A5, FALSE) : Displays 60

See Also

References