Difference between revisions of "Manuals/calci/text"

From ZCubes Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
*<math>SomeValue</math> is a numeric value to be converted.
 
*<math>SomeValue</math> is a numeric value to be converted.
 
*<math>SomeFormat</math> can be a date format, currency format, percentage format etc.  
 
*<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.
+
*For invalid arguments, Calci displays #N/A error message.
  
 
== Examples ==
 
== Examples ==

Revision as of 14:43, 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.
  • For invalid arguments, 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