The TEXT() function converts numeric values to text.

For example, you can use the TEXT function to convert numeric values to text values for use in other functions that require text-based arguments.

TEXT(Number to convert)

ArgumentData typeDescription
Number to convertNumberThe value to convert to text.

The TEXT function returns a text result.

In Polaris, the TEXT function returns a text value of NaN when used with the numerical value NaN.

In the Classic Engine, the TEXT function returns a blank value when you use it with the numerical value value NaN (Not a Number).

Results for numbers less than 0.001 display in computerized scientific notations. For example, TEXT(0.0001) = '1.0E-4'.

TEXT

In this example, the line item Number with a Number data type is converted to a Text data type using the formula TEXT(Number). As a result, the line item contains numbers as text and is available for use in text functions such as LEFT and RIGHT.


Jan 25Feb 25Mar 25Apr 25May 25
Number12345
Text
TEXT(Number)
12345

In this example, the line item Date with a Date data type is converted to a Text data type using the formula TEXT(DAY(Date)) & "/" & TEXT(MONTH(Date)) & "/" & TEXT(YEAR(Date)).


Jan 25Feb 25Mar 25Apr 25May 25
Date01/01/202501/02/202501/03/202501/04/202501/05/2025
Text
TEXT(DAY(Date)) & "/" & TEXT(MONTH(Date)) & "/" & TEXT(YEAR(Date))
1/1/20251/2/20251/3/20251/4/20251/5/2025