Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Use the DOLLAR Function in Google Sheets

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The DOLLAR function in Google Sheets converts a number into text formatted as currency, complete with a dollar sign and two decimal places by default. This is useful when you need to display monetary values as static text strings rather than dynamic numerical data, such as in labels, headers, or when exporting data where numeric formatting might be lost.

What You'll Need

  • A Google Sheets document open in your browser or mobile app.
  • A cell containing a number you wish to format (e.g., 100, 50.75, or a reference like A1).
  • Basic familiarity with typing formulas into cells.

Step-by-Step

  1. Select the target cell. Click on an empty cell where you want the formatted currency text to appear. For example, if your raw number is in cell A1, click on cell B1.
  2. Type the formula start. Enter =DOLLAR(. The opening parenthesis indicates that you are about to provide arguments for the function.
  3. Reference the value. Click on the cell containing the number you want to convert (e.g., A1) or type the specific number directly (e.g., 100). If you are referencing another cell, ensure there is no extra space before the cell reference.
  4. Add optional decimal precision (if needed). By default, DOLLAR rounds to two decimal places. If you want more or fewer decimals, add a comma after the first argument, followed by the number of decimal places. For example, to show zero decimals, type ,0. To show four decimals, type ,4. If you skip this step, it defaults to 2.
  5. Close the formula. Type the closing parenthesis ) and press Enter on your keyboard. Your cell should now display the value with a leading dollar sign and the specified decimal precision.
  6. Verify the output. Check that the result looks correct (e.g., $100.00 or $1,234.56). Note that commas separating thousands are included automatically based on standard locale settings.

Common Mistakes

One frequent error is confusing the DOLLAR function with simple cell formatting. Using DOLLAR returns a text string, not a number. This means you cannot perform mathematical operations (like addition or multiplication) on the result of a DOLLAR function without converting it back to a number first. If you need to calculate totals, keep the original numbers in separate cells and use DOLLAR only for display purposes.

Another mistake is forgetting to close the parentheses. Google Sheets will often auto-complete the closing bracket, but if you manually type the formula and omit the final ), you will receive a syntax error. Always ensure every opening parenthesis has a corresponding closing one.

Users sometimes attempt to change the currency symbol by typing it inside the function arguments. The DOLLAR function strictly outputs US Dollar symbols ($). It does not accept arguments to change the symbol to Euros, Pounds, or other currencies. For those, you must use different methods, such as custom number formats or concatenation.

Tips

If you need to combine text with currency values dynamically, consider using the TEXT function instead of DOLLAR. The syntax =TEXT(A1, "$#,##0.00") offers more flexibility because you can define the exact format pattern, including whether to show negative signs in parentheses or with a minus symbol.

To apply the DOLLAR function to a range of cells quickly, enter the formula in the top-left cell of your desired range, then drag the fill handle (the small square at the bottom-right corner of the selected cell) down or across. Google Sheets will automatically adjust the cell references relative to the new positions.

If you prefer visual formatting over text conversion, simply select your cells and go to Format > Number > Currency. This keeps the underlying data as numbers, allowing for calculations while still displaying the dollar sign. Use this method unless you specifically need the output to be treated as text.

Troubleshooting

If your cell displays a #ERROR! message, check your syntax. Ensure you typed =DOLLAR( correctly and that you referenced a valid cell or number. A common cause is referencing an empty cell; while DOLLAR("") might return $0.00, referencing a non-existent range or a typo in the cell address will cause an error.

If the result shows scientific notation (e.g., 1E+20) or unexpected characters, verify that the source cell contains a valid number. Text entries passed into the DOLLAR function may produce unpredictable results or errors depending on the content. Ensure the input is purely numeric.

If the decimal places do not match your expectation, confirm whether you provided the second argument. Without it, the function defaults to two decimals. If you entered ,0 but still see decimals, check if the source number has hidden precision issues, though DOLLAR generally rounds visibly. Remember that rounding behavior follows standard mathematical rules (half up).

For locale-specific issues, note that DOLLAR always uses the US English convention for the dollar sign and decimal point. If your spreadsheet is set to a European locale, the underlying number might display differently elsewhere, but the DOLLAR output remains consistent with US formatting. Do not expect local currency symbols from this specific function.

Frequently Asked Questions

Can I change the currency symbol using the DOLLAR function?

No, the DOLLAR function is hardcoded to output the US dollar symbol ($). To use other symbols, you must either use the TEXT function with a custom format code or concatenate the symbol manually using the ampersand operator (&).

Does DOLLAR round or truncate numbers?

The DOLLAR function rounds numbers to the nearest specified decimal place. For example, =DOLLAR(10.567, 2) will result in $10.57, not $10.56. If you need truncation, you would need to use a combination of functions like TRUNC before applying DOLLAR.

Why can't I sum cells formatted with DOLLAR?

Because DOLLAR returns a text string, not a numeric value. Spreadsheet formulas like SUM ignore text values. To sum these figures, you must refer to the original numeric cells, not the cells containing the DOLLAR formula output.

Is there a difference between DOLLAR and TEXT?

Yes. DOLLAR is simpler for basic USD formatting but less flexible. TEXT allows you to specify any format pattern, including different currencies, date formats, and padding options, making it more powerful for complex reporting needs.

How do I remove the dollar sign later?

Since the output is text, you cannot simply change the cell format to "Number" to remove the sign. You would need to replace the formula with a direct reference to the original number or use a find-and-replace operation to strip the $ character, though this leaves you with text that looks like numbers.