The Excel DOLLAR Function

Related Functions:
FIXED Function
TEXT Function

Basic Description

The Excel DOLLAR function rounds a supplied number to a specified number of decimal places and then converts this into text, using a currency format. The currency format used is the format that is set as the default on your computer.

The format of the Excel DOLLAR function is :

DOLLAR( number, [decimals] )

Where the arguments are as follows :

number - The number to be converted into a text string
[decimals] - An optional numerical argument which specifies the number of decimal places to be shown after the decimal point
Note :
      -     If [decimals] is omitted, it takes on the default value of 2.
      -     If [decimals] is negative, the supplied number is rounded up to the left of the decimal point.

Dollar Function Examples

  A B
1   =DOLLAR( 123.591 )
2 123.591 =DOLLAR( A2 )
3 123.591 =DOLLAR( A3, 1 )
4 123.591 =DOLLAR( A4, 0 )
5 123.591 =DOLLAR( A5, -1 )
6 123.591 =DOLLAR( A6, -2 )
  A B
1   $123.59          
2 123.591 $123.59
3 123.591 $123.6
4 123.591 $124
5 123.591 $120
6 123.591 $100

Dollar Function Common Problem

Common Problem

Once a number has been converted, using the Excel Dollar function, it is stored in Excel as text. Therefore, it cannot be used in numeric calculations.

If you want to be able to use the numbers in calculations, you may prefer to keep the values as numbers in Excel and just change the formatting into a currency format. To do this:

  • Right click with the mouse, on the cell to be formatted
  • Select the Format Cells ... option and ensure the Number tab is selected
  • Under the Category heading, select the option Currency
  • From the options that appear on the right, specify the details of the formatting required
  • Click OK
For more information on Excel formatting, click here
Return to the Excel Text Functions Page

Return to the Excel Built-In Functions page