Difference between revisions of "Manuals/calci/RIGHT"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">'''RIGHT'''</font></font></font><font color="#484...")
 
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
=RIGHT(Text, Number_chars)=
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''RIGHT'''</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">'''txt'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,noc)</font></font></font>
+
where,  
 +
*'''Text''' is a text string containing characters to extract,
 +
*'''Number_chars''' represents the number of characters to be extracted.
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">where t</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''xt'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">   is the text string containing the characters that want to pull out and noc  specifies the number of characters .</font></font></font>
+
RIGHT() displays the last character or characters from a text string, depending on the specified number of characters.
  
</div>
+
== Description ==
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">It brings the last character or characters in a text string, based on the number of characters that specify.</font></font></font>
+
RIGHT(txt)
  
<font color="#ff0000"><font face="Arial, sans-serif"><font size="2">'''Note:'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2"> RIGHT use the single-byte character set (SBCS) </font></font></font>
+
e.g. RIGHT("String",2) displays '''ng''' as a result.
  
</div>
+
*RIGHT counts 1 byte per characters. RIGHT works with the languages that use 'Single Byte Character Set' (SBCS).
----
+
*'''Text''' can be any string containing characters, numbers, symbols, blank spaces etc.
<div id="7SpaceContent" class="zcontent" align="left"> 
+
*If argument '''Text''' is directly entered in the command, it should be enclosed in double quotes (e.g. "Name").
 +
*Argument '''Number_chars''' indicates the number of characters to be displayed from a text string. '''Number_chars''' should be &gt;0.
 +
*If '''Number_chars''' &gt;'length of text', Calci displays all the text.
 +
*If '''Number_chars''' is omitted, Calci assumes it to be 1.
  
* <font color="#484848"><font face="Arial, sans-serif"><font size="2">noc must be greater than or equal to zero. </font></font></font>
+
== Examples ==
* <font color="#484848"><font face="Arial, sans-serif"><font size="2">RIGHT displays all of text when noc is greater than the length of text. </font></font></font>
 
* <font color="#484848"><font face="Arial, sans-serif"><font size="2">When noc is omitted, it is assumed to be 1. </font></font></font>
 
  
</div>
+
Consider the following examples as input to RIGHT() function.
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
RIGHT
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left"> 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let’s see an example in (Column1 Row 1)</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">C1R1 = Stock Exchange</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e. =RIGHT(C1R1,8) is Exchange</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">///rly =RIGHT(C1R1) is e</font></font></font>
 
 
</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" |Wel-Come
 +
| class=" " |
 
| class=" " |
 
| class=" " |
| Column1
+
 
| class="  " | Column2
 
| Column3
 
| Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" |JOHN SMITH
| class=" " | StockXPExchange
+
| class=" " |
| class="sshl_f" | Exchange
+
| class=" " |
| class="sshl_f" | e
+
 
| class="                                                            sshl_f  " |
 
 
|- class="even"
 
|- class="even"
| class=" " | Row2
+
| class="sshl_f" |123*123
| class="sshl_f" |
+
| class=" " |
|
+
| class=" " |
| class=" SelectTD SelectTD" |
+
 
<div id="2Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
|
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="sshl_f" |  
| class="                                       sshl_f   " |
+
| class=" " |
|
+
| class=" " |
|
 
|
 
|- class="even"
 
| Row4
 
|
 
|
 
|
 
| class="  " |
 
|- class="odd"
 
| class=" " | Row5
 
|
 
|
 
|
 
|
 
|- class="even"
 
| Row6
 
|
 
|
 
|
 
|
 
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
=RIGHT(A1,5) : Displays last 5 characters in a string from cell A1. Displays '''-Come''' as the output.
----
+
=RIGHT(A2,8) : Displays last 8 characters in a string from cell A2. Displays '''HN SMITH''' as the output. Space Character is also counted.
 +
=RIGHT(A3,9) : Displays all characters in a string from cell A3. Displays '''123*123''' as the output.
 +
=RIGHT("Good Morning",7) :Displays '''Morning''' as the output.
 +
 
 +
== See Also ==
 +
 
 +
*[[Manuals/calci/RIGHTB | RIGHTB]]
 +
 
 +
== References ==
 +
 
 +
*[http://en.wikipedia.org/wiki/String_(computer_science) String]

Revision as of 17:43, 30 January 2014

RIGHT(Text, Number_chars)

where,

  • Text is a text string containing characters to extract,
  • Number_chars represents the number of characters to be extracted.

RIGHT() displays the last character or characters from a text string, depending on the specified number of characters.

Description

RIGHT(txt)

e.g. RIGHT("String",2) displays ng as a result.

  • RIGHT counts 1 byte per characters. RIGHT works with the languages that use 'Single Byte Character Set' (SBCS).
  • Text can be any string containing characters, numbers, symbols, blank spaces etc.
  • If argument Text is directly entered in the command, it should be enclosed in double quotes (e.g. "Name").
  • Argument Number_chars indicates the number of characters to be displayed from a text string. Number_chars should be >0.
  • If Number_chars >'length of text', Calci displays all the text.
  • If Number_chars is omitted, Calci assumes it to be 1.

Examples

Consider the following examples as input to RIGHT() function.

Wel-Come
JOHN SMITH
123*123
=RIGHT(A1,5) : Displays last 5 characters in a string from cell A1. Displays -Come as the output. 
=RIGHT(A2,8) : Displays last 8 characters in a string from cell A2. Displays HN SMITH as the output. Space Character is also counted.
=RIGHT(A3,9) : Displays all characters in a string from cell A3. Displays 123*123 as the output.
=RIGHT("Good Morning",7) :Displays Morning as the output.

See Also

References