Smart Systems for Home

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

Google Sheets DOLLARFR Function: Guide and Examples

· 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 DOLLARFR function in Google Sheets is used to format a number as currency, but unlike the standard currency formatting, it allows you to specify exactly how many fractional digits (decimal places) should be displayed. This is particularly useful for financial reports where you need a consistent number of decimals across a dataset regardless of the default cell formatting, or when dealing with currencies that require more than two decimal places for precision.

What You'll Need

  • A Google account with access to Google Sheets.
  • A dataset containing numerical values that represent monetary amounts.
  • A basic understanding of how to enter formulas into a cell.

Step-by-Step

  1. Open your spreadsheet: Launch Google Sheets and open the document where you want to apply the currency formatting.
  2. Identify your target value: Locate the cell containing the number you wish to convert. For example, if your value is in cell A2, this will be your first argument.
  3. Select the output cell: Click on the empty cell where you want the formatted currency string to appear.
  4. Enter the function start: Type =DOLLARFR( into the cell.
  5. Define the number argument: Immediately after the opening parenthesis, click on the cell containing the value (e.g., A2) or type the number directly. For example: =DOLLARFR(A2,
  6. Define the fractional digits: After the comma, enter the number of decimal places you want to show. If you want two decimal places, type 2. If you want no decimals, type 0. For example: =DOLLARFR(A2, 2)
  7. Complete the formula: Close the parenthesis and press Enter. The number will now appear with a currency symbol and the exact number of decimals specified.
  8. Apply to multiple rows: To apply this to an entire column, click the small blue square (fill handle) at the bottom-right corner of the cell and drag it down through the rest of your data.

Common Mistakes

One of the most frequent errors is confusing the DOLLARFR function with the standard currency button in the toolbar. While the toolbar button changes the visual display of the cell, DOLLARFR converts the number into a text string. This means that if you try to perform mathematical operations (like SUM) on cells that have been processed by DOLLARFR, you may encounter errors or incorrect results because Google Sheets now treats that value as text rather than a raw number.

Another common mistake is entering a negative number for the fractional digits argument. The second part of the formula must be a non-negative integer. If you enter a negative number, the function will return a #NUM! error because it is impossible to display a negative amount of decimal places.

Users also often forget that DOLLARFR uses the default currency symbol based on the spreadsheet's locale settings. If your spreadsheet is set to the United States, it will use the dollar sign ($). If it is set to the United Kingdom, it will use the pound sign (£). If you need a specific currency symbol that differs from your locale, you cannot change it within the DOLLARFR function itself; you must change the spreadsheet settings via File > Settings.

Tips

To maintain the ability to perform calculations while still having the aesthetic of DOLLARFR, create a "Calculation Column" and a "Presentation Column." Keep your raw numbers in one column (hidden if necessary) and use the DOLLARFR function in a separate column that is intended for the final report or view. This ensures your math remains accurate while your presentation remains professional.

If you are working with very large numbers, you can combine DOLLARFR with other functions. For instance, if you want to round a number before formatting it, you can nest the ROUND function inside: =DOLLARFR(ROUND(A2, 4), 2). This ensures the number is mathematically rounded to four places before the DOLLARFR function truncates the visual display to two.

For those who need to apply this to thousands of rows, consider using an ArrayFormula. Instead of dragging the formula down, you can use =ARRAYFORMULA(DOLLARFR(A2:A100, 2)). This will automatically populate the entire range from A2 to A100 with the formatted currency, saving significant time and reducing the risk of missing a cell during a manual drag.

Troubleshooting

If your formula returns a #VALUE! error, it is almost always because the first argument (the number) is not actually a number. This happens frequently when data is imported from another software and contains hidden spaces, currency symbols already typed in as text, or commas used as text characters. To fix this, use the =VALUE() function to convert the text back to a number first, or use Find and Replace to remove any non-numeric characters from the source cell.

If the currency symbol is incorrect (e.g., you see € instead of $), you must change the locale of the entire workbook. Go to File > Settings, and under the General tab, find the Locale dropdown menu. Select the country that corresponds to the currency symbol you need. Note that changing the locale may also change how dates are formatted throughout your sheet.

If the number of decimals is not changing despite your input in the second argument, check to see if you have accidentally wrapped the DOLLARFR function inside another formatting function or if you are looking at a cached version of the cell. Ensure there are no trailing spaces in your formula that might be causing a syntax error, although Google Sheets usually flags these with a red underline.

Frequently Asked Questions

Can I change the currency symbol to something other than the local default?

No, the DOLLARFR function automatically uses the currency symbol associated with the spreadsheet's locale. To change the symbol, you must change the locale in File > Settings.

Does DOLLARFR round the number or just truncate it?

The DOLLARFR function rounds the number to the specified number of decimal places. For example, if you have 10.556 and specify 2 decimal places, it will display as $10.56.

Why can't I sum the results of a DOLLARFR formula?

This is because DOLLARFR returns a text string, not a numeric value. To sum these values, you must sum the original raw numbers before the DOLLARFR function is applied.

What happens if I leave the second argument blank?

If you omit the second argument, Google Sheets typically defaults to two decimal places, which is the standard for most global currencies.

Is DOLLARFR different from the DOLLAR function?

Yes. The DOLLAR function always formats the number to two decimal places. The DOLLARFR function provides the added flexibility of choosing exactly how many fractional digits to display.

Can I use DOLLARFR with negative numbers?

Yes, the function handles negative numbers correctly. It will typically place the currency symbol and a minus sign (or parentheses, depending on locale) to indicate a negative monetary value.