TX Sheet Control

TEXT Function

Function

Format a number as text with a number format. value is the number, date or time, and format_text a number format code such as "#,##0.00", "0%", "yyyy-mm-dd" or "h:mm AM/PM". Text that isn't a number is returned unchanged.

Syntax

TEXT(value, format_text)

Category: Text. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=TEXT(1234.5,"#,##0.00")

The formula returns the text 1,234.50.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also