HomeGoogle DocsSpreadsheetFormat Numbers as Currency Using Formulas in Google Sheets

Format Numbers as Currency Using Formulas in Google Sheets

Published on

To format the existing numbers as currency, use the menu Format > Number > Currency or Currency Rounded. There is one more option to format the numbers as currency by using formulas in Google Sheets.

Assume I have a column showing the purchase quantity of one item on different dates.

If the rate for that item is $5, I can sum the quantity column and multiply it by 5 to get the total purchase cost. But the output will be in a plain number format, not in currency.

Here we can wrap this formula with either of the functions Dollar or To_Dollars to apply the default currency format.

These function names may give a false impression that it can only use to convert the provided number to Dollar. On the contrary, it converts a given number to the default currency that you set in your Sheet.

You May Like: How to Get Your Own Country’s Currency Format in Google Sheets.

These two functions are not yet featured on this site. So I am taking this as an opportunity to introduce two more Google Sheets functions to my readers.

First of all, I’ll explain to you how to use these functions and then we can come back to the above example. Then only you can understand which function is suitable for you.

How to use the To_Dollars Function in Google Sheets

Use the To_Dollars functions in Google Sheets to convert a numeric value to the default currency format.

Syntax:

TO_DOLLARS(value)

Formula Examples to the To_Dollars Function in Google Sheets.

=TO_DOLLARS(A1)

I have the above To_Dollars formula in cell C1 which is dragged down. You can use it in an array form too. In that case, just enter this Array Formula in cell C1.

=ArrayFormula(TO_DOLLARS(A1:A10))
Formula examples to To_Dollars in Sheets

The numeric values in the range A1:A3 has been formatted to currency in cell C1:C3. The currency symbol is Pound as per my default settings.

In cell A4 and A5, the numbers are entered as text. So the corresponding formulas in cell C4 and C5 consider that as text so return the values as it is.

Regarding the date in cell A6, the To_Dollars function interprets it as a number and converts it to currency format. So don’t use To_Dollars function with dates.

In concise, the To_Dollars function is equal to the Format > Number > Currency. The only difference is, the said menu command even converts numbers entered as the text strings to currency format.

How to use the Dollar Function in Google Sheets

Dollar is another function in Google Sheets to convert number to currency format.

Note: I am talking about converting a number to a currency format not about converting one currency to another. For the latter, you can follow this guide – How to Use the GoogleFinance Function in Google Sheets.

Syntax:

DOLLAR(number, [number_of_places])

You must understand the difference of the function Dollar with To_Dollars. Here is the features of the function Dollar in Sheets.

  1. The output of the Dollar function will be in text format.
  2. You can round a number along with currency formatting using the Dollar function in Sheets.
  3. The Dollar function formats numbers entered as text to currency format.
  4. Text input in the Dollar function returns the #VALUE error.
  5. The Boolean TRUE or FALSE will be formatted as currency.

See the side by side comparison of these two currency formatting functions below.

To_Dollars Vs Dollar Function in Google Sheets

To_Dollars Array Formula in C2:

=ArrayFormula(TO_DOLLARS(A2:A11))

Dollar Array Formula in Cell D2:

=ArrayFormula(dollar(A2:A11))
Difference between To_Dollars and Dollar Function

Now let me take you back to the topic, i.e. how to format numbers as currency using formulas in Google Sheets.

How to Format Numbers as Currency Using Formulas in Sheets

Example:

Format numbers as currency using formulas

I have used the SUM function to sum the values in column B and multiplied it by the unit rate 5. Then used the To_Dollars function to wrap this formula. So that I can convert the output format from number to currency.

I preferred To_Dollars over Dollar as the former keeps the output as a number value. That’s all.

When you want to format numbers as currency using formulas, use the functions wisely in Google Sheets as there is a choice. Thanks for the stay, Enjoy!

Related Reading:

  1. Lookup Dates and Return Currency Rates in an Array in Google Sheets.
  2. How to Convert Currency Text to Number in Google Sheets.
Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

XLOOKUP in Excel: Working with Visible Rows in a Table

In Excel, the XLOOKUP function isn't inherently designed to exclusively work with visible rows;...

SUMPRODUCT Differences: Excel vs. Google Sheets

The core purpose of the SUMPRODUCT function remains consistent across both Excel and Google...

Sum Values by Month and Category in Excel

With the help of EOMONTH, UNIQUE, and SUMIFS functions in Excel, you can efficiently...

Sum Values by Categories in Excel

In Excel, the easiest way to sum values in a range by categories is...

More like this

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

Analyzing Column A Between Non-Adjacent Values in Column B: Google Sheets

This tutorial addresses a common scenario encountered in Google Sheets: how to sum, average,...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.