TX Sheet Control

DOLLAR Function

Function

Convert a number to text in currency format. number is rounded to decimals places, 2 when omitted; a negative decimals rounds to the left of the decimal point. The text has a dollar sign and thousands separators, and a negative number is shown in parentheses. DOLLAR takes at most two arguments: the no_commas argument in the syntax is not supported and returns #VALUE!.

Syntax

DOLLAR(number, decimals, no_commas)

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

Available for supported offline calculation.

Examples

=DOLLAR(1234.567,2)

The formula returns the text $1,234.57.

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

See Also