Documentation/How Tos/Calc: TEXT function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 14:47, 19 January 2008 by Drking (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


TEXT

Converts a number into text according to a given format.

Syntax:

TEXT(number; format)

returns number converted to text, according to the format code specified by format.
Example format codes are found in the Format - Cells... dialogue, in the box labelled Format Code. These depend on your locale.
This function should therefore not be regarded as portable.

Example:

TEXT(12.34567;"###.##")

returns the text 12.35, if in your locale ###.## is a format code meaning "up to three integer digits and at most two decimal digits".

See also:

T, VALUE, N

Text functions

Personal tools