ReferenceFunctionsText Functions
DOLLAR
DOLLAR: Formats a number as currency text.
Summary
Formats a number as currency text.
Remarks
- Default decimal places is
2when omitted. - Negative values are rendered in parentheses, such as
($1,234.00). - Uses comma group separators and dollar symbol.
- Input coercion failures or propagated errors return an error.
Examples
Default currency formatting
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
$1,234.50
Negative value with zero decimals
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
($999)
Related functions
FAQ
How are negative numbers displayed?
Negative results are formatted in parentheses, for example ($1,234.00).
Runtime metadata
Category
Text
Signature
DOLLAR(arg1: Number, arg2?: Number)Arity
min 1, max 2
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2optionaldefaultNumber · Scalar · coercion NumberLenientText
Caps
PURE
Source