Excel DOLLAR function

doc ceiling precise 1


Description

The DOLLAR function, one of TEXT function, which is used to convert a number to text in the currency formatting, with the decimals rounded to the given number of decimal places. Supposing, DOLLAR(12.34,4) rounds the number "12.34" to 4 decimal places and returns text string "$12.3400" in currency format.

Syntax and arguments

Formula syntax

DOLLAR(number,[decimals])

Arguments

  • number: Required, the number or reference or a formula that evaluates to a number you used to convert to text in currency format.
  • decimal: Optional, the number of digits to the right of the decimal point. If it is omitted, the number of digits to the right of the decimal point is 2. If it is negative, the number is rounded to the left of the decimal point.

Return Value

The DOLLAR function returns a number displayed as text in currency format.

Remarks

1. The DOLLAR function uses the $#,##0.00_);($#,##0.00) number format, although the currency symbol depends on your local language settings.

2. If the argument [decimals] is negative and the absolute value of this [decimals] is larger than or equal to the number of the Number’s integer digits , it returns zero. Supposing, =DOLLAR(11.24,-2) returns $0.

Usage and Examples

Example 1 argument [decimals] is omitted

=DOLLAR(B3))

B3 is the cell containing the number you want to convert to text in currency format. When omit the argument [decimals], it returns text in currency format with 2 digits to the right of the decimal point.
doc dollar function 2

Example 2 argument [decimals] is positive

=DOLLAR(B4, 4)

B4 is the cell containing the number you want to convert to text in currency format. And it returns text in currency format with 4 digits to the right of the decimal point.
doc dollar function 3

Example 3 argument [decimals] is negative

=DOLLAR(B5, -2)

B5 is the cell containing the number you want to convert to text in currency format. And it returns text in currency format with 2 digits to the left of the decimal point.
doc dollar function 4

Example 4 directly using number as argument number

=DOLLAR(46.743, 1)

Convert 46.743 to text in currency format. And it returns text in currency format with 1 digit to the right of the decimal point.
doc dollar function 5


Download sample

dollar-function.xlsx


Relative Functions:

  • Excel CHAR Function
    The CHAR function returns the character specified by a number which from 1 to 255.

  • Excel CLEAN Function
    The CLEAN function is used to remove all non-printable characters from the given text.

  • Excel CODE Function
    The CODE function returns a numeric code of a character or the first character in a given text string cell.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.