ID EN
#Text

DOLLAR

Excel Functions

Convert a number to text in currency format

Syntax

EXCEL
=DOLLAR(number, decimals)

Arguments

Parameter Description
number The number to convert.
decimals The number of digits to the right of the decimal point. Default is 2.

Return Value

A number as text in currency format.

Details

The DOLLAR function converts a number to text, formatted as currency. The name of the function and the currency symbol used is based on language settings of the computer. It's important to understand that DOLLAR returns text and not a number, so the result cannot be used in a numeric calculation. If the goal is simply to format a number as Currency, applying a standard number format is a better option. Video: How to use number formatting. The DOLLAR function takes two arguments, number and decimals. Number is the number to format, decimals controls how the number is rounded and specifies the number of digits to the right of the decimal point. Decimals is optional and defaults to 2. For example: One use of the DOLLAR function is to concatenate a formatted number to a text string, since numb

Examples

Example 1

The DOLLAR function takes two arguments, number and decimals. Number is the number to format, decimals controls how the number is rounded and specifie

EXCEL
=DOLLAR(169.49) // returns "$169.49"
=DOLLAR(169.49,2) // returns "$169.49"
=DOLLAR(169.49,0) // returns "$169"
Example 2

One use of the DOLLAR function is to concatenate a formatted number to a text string, since number formatting is lost during concatenation. For exampl

EXCEL
="The price is "&A1 // returns "The price is 99"
Example 3

With the DOLLAR function, formatting can be maintained:

EXCEL
="The price is "&DOLLAR(A1) // returns "The price is $99.00"

See Also

TEXT