Show AllShow All

TEXT

See Also

Converts a value to text in a specific number format.

Syntax

TEXT(value,format_text)

Value    is a numeric value, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value.

Format_text    is a number format in text form from in the Category box on the Number tab in the Format Cells dialog box.

Remarks

Example

The example may be easier to understand if you copy it to a blank worksheet.

Show How?

 
1
2
3
A B
Salesperson Sales
Buchanan 2800
Dodsworth 40%
Formula Description (Result)
=A2&" sold "&TEXT(B2, "$0.00")&" worth of units." Combines contents above into a phrase (Buchanan sold $2800.00 worth of units.)
=A3&" sold "&TEXT(B3,"0%")&" of the total sales." Combines contents above into a phrase (Dodsworth sold 40% of the total sales.)