Google Sheets DOLLAR Function

This post will guide you how to use Google Sheets DOLLAR function with syntax and examples.

Description


The Google Sheets DOLLAR function converts a number to text using currency format (such as: $ symbol), the currency format used depends upon your default language setting on your computer.

The DOLLAR function can be used to convert a number to text using the locale-specific currency number format

The DOLLAR function is a build-in function in Google Sheets and it is categorized as a Text Function.

Syntax


The syntax of the DOLLAR function is as below:

= DOLLAR  (number, [decimals])

Where the DOLLAR function arguments are:

  • numberThis is a required argument. The number to be converted into text string. Or a reference to a cell that containing a number.
  • DecimalsThis is an optional argument. It will specify the number of decimal places to be displayed after decimal point.

Example


The below examples will show you how to use Google Sheets DOLLAR function to convert a number as text using currency format based on locale setting of your computer.

#1 To convert Number value in B1 cell to a text string of a currency format and keep 2 digits to the right of the decimal point, just using the following formula:

=DOLLAR(B1,2)

google sheets dollar function

#2 To Display the number in B2 in a currency format and keep 2 digits to the left of the decimal point, using the following DOLLAR formula in google sheets:

=DOLLAR(B2,-2)

google sheets dollar function

Notes:

  • The currency format is based on your spreadsheet locale.
  • If Decimals value is omitted, it is set to be 2 by default.  If Decimals value is negative, the number is rounded to the left of the decimal point.
  • The first number argument is required
  • You need to know that the DOLLAR function returns a text value and not a numeric value. So the result cannot be used in a numeric calculation in google sheets.
  • The DOLLAR function only takes two arguments, number and decimals. Decimals will control how the first number argument is rounded. The default value is to 2.

 

 

Related Posts

Google Sheets LN Function
google sheets LN function1

This post will guide you how to use Google Sheets LN function with syntax and examples. Description The Google Sheets LN function returns the natural logarithm of a given number.  And the natural logarithms are based on the constant e ...

Google Sheets INT Function
google sheets int function1

This post will guide you how to use Google Sheets INT function with syntax and examples. Description The Google Sheets INT function returns the integer portion of a given number. And it will round a given number down to the ...

Google Sheets FLOOR Function
google sheets floor function1

This post will guide you how to use Google Sheets FLOOR function with syntax and examples. Description The Google Sheets FLOOR function returns a number rounded down to the nearest multiple of significance. So it will return a rounded number. ...

Google Sheets EXP Function
google sheets exp function1

This post will guide you how to use Google Sheets EXP function with syntax and examples. Description The Google Sheets EXP function returns e raised to the power of a number.  The constant e is equal to 2.71828182845904, and it ...

Google Sheets FACT Function
google sheets FACT function1

This post will guide you how to use Google Sheets FACT function with syntax and examples. Description The Google Sheets FACT function returns the factorial of a given number.  The factorial of a given number is equal to 1*2*3…* number. ...

Google Sheets EVEN Function
google sheets even function1

This post will guide you how to use Google Sheets EVEN function with syntax and examples. Description The Google Sheets EVEN function rounds a given number up to the nearest even integer. You can use the EVEN function to return ...

Google Sheets COUNTBLANK Function
google sheets countblank function1

This post will guide you how to use Google Sheets COUNTBLANK function with syntax and examples. Description The Google Sheets COUNTBLANK function use to count the number of empty cells in a range of cells. You can use the COUNTBLANK ...

Google Sheets DEGREES Function
google sheets degrees function1

This post will guide you how to use Google Sheets DEGREES function with syntax and examples. Description The Google Sheets DEGREES function converts radians into degrees. And it will return a numeric value. For examples, if you pass the PI() function into ...

Google Sheets COSH Function
google sheets cosh function1

This post will guide you how to use Google Sheets COSH function with syntax and examples. Description The Google Sheets COSH function returns the hyperbolic cosine of a given angle. The purpose of this function is used to get hyperbolic ...

Google Sheets COS Function
google sheets cos function1

This post will guide you how to use Google Sheets COS function with syntax and examples. Description The Google Sheets COS function returns the cosine of a given angle. If you want to supply an angle to COS function in ...

Sidebar