Function · Convert text and numbers
Excel DOLLAR function
The Excel DOLLAR function formats a number as currency text. 1234.5 with two decimals becomes the text $1,234.50 in a US workbook. SUM ignores that text.
Syntax =DOLLAR(number, [decimals])
=DOLLAR(1234.5,2)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | The number to format. |
| decimals | Optional | How many decimal places. The default is 2. Excel rounds first. A negative decimals value rounds to the left of the decimal point. |
Examples
Twelve hundred thirty-four dollars and fifty cents, as text
=DOLLAR(1234.5,2)Result $1,234.50
| A | B | |
|---|---|---|
| 1 | Number | 1234.5 |
| 2 | Text | $1,234.50 |
DOLLAR rounds a number and returns it as currency text. 1234.5 with two decimals is $1,234.50 in a US locale. The dollar sign and the thousands comma are characters, not a number format. SUM skips the cell. A format on the original number looks the same and still adds.
The symbol follows the workbook’s locale. This page is written for a US locale. A negative amount is wrapped in parentheses, ($1,234.50), which is the US accounting habit, not a minus sign. FIXED does the rounding-to-text step without the currency symbol. TEXT with a format such as $#,##0.00 is the more flexible version when you need a pattern DOLLAR does not offer.