Difference between revisions of "Manuals/calci/text"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''T'''(SomeValue,SomeFormat) where, '''SomeValue''' - is the numeric value. '''SomeFormat''' - is a numeric...")
 
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
=TEXT(SomeValue, SomeFormat)=
 
 
'''T'''(SomeValue,SomeFormat)
 
  
 
where,
 
where,
 +
*<math>SomeValue</math> is a numeric value, and
 +
*<math>SomeFormat</math> is a numeric format in which text is to be displayed.
  
'''SomeValue''' - is the numeric value.
+
TEXT() converts a numeric value to a text in a specified format.
  
'''SomeFormat''' - is a numeric format as atext string enclosed in quotation marks.
+
== Description ==
  
</div>
+
TEXT(SomeValue, SomeFormat)
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
  
Calci converts a value to text in a specific number format.
+
e.g. TEXT(54,"$00.00") returns '''54.00''' as a result.
  
</div>
+
*TEXT function is used to convert a numeric value to a formatted text. Result can no longer be calculated as a number.
----
+
*<math>SomeValue</math> is a numeric value to be converted.
<div id="7SpaceContent" class="zcontent" align="left">SomeFormat cannnot contain an asterisk(*).</div>
+
*<math>SomeFormat</math> can be a date format, currency format, percentage format etc.
----
+
*If <math>txt</math> is invalid, Calci displays #N/A error message.
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
TEXT
+
== Examples ==
  
T
+
Consider the following examples that demonstrate the use of TEXT() function:
  
</div></div>
+
<div id="2SpaceContent" class="zcontent" align="left">
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column2,Row1)
+
{| id="TABLE3" class="SpreadSheet blue"
 +
|- class="even"
 +
| class="sshl_f" |5678.89
 +
| class="sshl_f" |
 +
| class="sshl_f" |
  
<nowiki>=T(B2)</nowiki>
+
|- class="odd"
 +
| class="sshl_f" |45000
 +
| class="sshl_f" |
 +
| class="sshl_f" |
  
T returns the text.
+
|- class="even"
 
+
| class="sshl_f" |
Consider another example
+
| class="sshl_f" |
 +
| class="sshl_f" |
 +
|}
  
<nowiki>=T(9)</nowiki>
+
=TEXT(A1,"$0,000.00") : Displays '''$5,678.89''' as the output.
 +
=TEXT(A1,"0,000.00") : Displays'''5,678.9''' as the output.
 +
=TEXT(A2,"0") : Displays'''45,000''' as the output.
  
T returns  ""(empty string).
+
== See Also ==
  
</div>
+
*[[Manuals/calci/VALUE | VALUE]]
----
 
<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">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
== References ==
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | SMITH
 
| class="sshl_f" | 1500
 
| 4
 
| class="sshl_f" | 5
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 0
 
| class="sshl_f  " | 8
 
| 9
 
| class="sshl_f" | 128
 
|- class="odd"
 
| Row3
 
| class="  SelectTD ChangeBGColor SelectTD" |
 
<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>12
 
| class="sshl_f" | 67968
 
| 14
 
| class="sshl_f    " | 15
 
|- class="even"
 
| Row4
 
| 17
 
| class=" " | 18
 
| class="sshl_f" | 10000
 
| class="  " | 20
 
|- class="odd"
 
| class=" " | Row5
 
| 29
 
| 67994
 
| 10027
 
| 168
 
|- class="even"
 
| Row6
 
| 3000
 
| 0.850904
 
| 1.619775
 
| 0.525322
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[http://en.wikipedia.org/wiki/String_(computer_science) String]
----
+
*[http://en.wikipedia.org/wiki/Text_normalization Text Normalization]

Revision as of 15:42, 2 April 2014

TEXT(SomeValue, SomeFormat)

where,

  • is a numeric value, and
  • is a numeric format in which text is to be displayed.

TEXT() converts a numeric value to a text in a specified format.

Description

TEXT(SomeValue, SomeFormat)

e.g. TEXT(54,"$00.00") returns 54.00 as a result.

  • TEXT function is used to convert a numeric value to a formatted text. Result can no longer be calculated as a number.
  • is a numeric value to be converted.
  • can be a date format, currency format, percentage format etc.
  • If is invalid, Calci displays #N/A error message.

Examples

Consider the following examples that demonstrate the use of TEXT() function:

5678.89
45000
=TEXT(A1,"$0,000.00") : Displays $5,678.89 as the output.
=TEXT(A1,"0,000.00") : Displays5,678.9 as the output.
=TEXT(A2,"0") : Displays45,000 as the output.

See Also

References