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.

x
How to Unmerge Cells and Fill Down Values in Excel
 

 

Related Posts

Google Sheets PROPER Function
google sheets proper function1

This post will guide you how to use Google Sheets PROPER function with syntax and examples. Description The Google Sheets PROPER function capitalizes the first character in each word of a text string and set other characters to lowercase . ...

Google Sheets MIDB Function
google sheets midb function1

This post will guide you how to use Google Sheets MIDB function with syntax and examples. Description The Google Sheets MIDB function returns a substring (a specified number of bytes) starting from the middle of a text string and up ...

Google Sheets MID Function
google sheets mid function

This post will guide you how to use Google Sheets MID function with syntax and examples. Description The Google Sheets MID function returns a substring (a specified number of the characters) starting from the middle of a text string. The ...

Google Sheets LOWER Function
google sheets lower function1

This post will guide you how to use Google Sheets LOWER function with syntax and examples. Description The Google Sheets LOWER function converts all characters in a text string to lowercase. The LOWER function can be used to convert a ...

Google Sheets LENB Function
google sheets lenb function1

This post will guide you how to use Google Sheets LENB function with syntax and examples. Description The Google Sheets LENB function returns the length of a text string in bytes. The LENB function can be used to count the ...

Google Sheets LEN Function
Google sheets len function1

This post will guide you how to use Google Sheets LEN function with syntax and examples. Description The Google Sheets LEN function returns the length of a text string (the number of characters in a text string). The LEN function ...

Google Sheets LEFTB Function
google sheets leftb function

This post will guide you how to use Google Sheets LEFTB function with syntax and examples. Description The Google Sheets LEFTB function returns a substring (a specified number of the bytes) from a text string, starting from the left portion. ...

Google Sheets LEFT Function
google sheets left function

This post will guide you how to use Google Sheets LEFT function with syntax and examples. Description The Google Sheets LEFT function returns a substring (a specified number of the characters) from a text string, starting from the leftmost character. ...

Google Sheets JOIN Function
Google sheets join function

This post will guide you how to use Google Sheets JOIN function with syntax and examples. Description The Google Sheets JOIN function joins two or more text strings together and separated by a delimiter. you can select an entire range ...

Google Sheets FIXED Function
google sheets fixed function1

This post will guide you how to use Google Sheets FIXED function with syntax and examples. Description The Google Sheets FIXED function rounds a number to the specified number of decimal places and returns the result as text string and ...

Sidebar