Convert Currency-Formatted Text to Numbers in Google Sheets

Published on

Converting currency-formatted text to numbers allows you to use values with currency symbols in calculations.

When you import data from web pages or other sources into Google Sheets, the column for currency values often formats as text because a currency symbol (e.g., $ or other symbols) prefixes the number.

The default currency format of your sheet is determined by the Locale settings under File > Settings.

If the imported currency format doesn’t match your sheet’s settings, those numbers will appear as text strings and won’t be useful for calculations or aggregation.

You can convert currency-formatted text to numbers in two ways: using the Find and Replace command or by applying the SUBSTITUTE or REGEXEXTRACT formulas. We’ll explore both options.

Convert Currency-Formatted Text to Numbers with Find and Replace

In the following example, the currency-formatted text is in column B, specifically B2:B6.

Sample data displaying currency-formatted text

Here are the steps to convert them to numbers:

  1. Double-click cell B2, move the cursor to the left and select and copy the currency symbol.
  2. Select the range B2:B6.
  3. Click Edit > Find and Replace.
  4. In the “Find” field, paste the copied currency symbol.
  5. In the “Search” field, ensure that “Specific Range” is selected from the drop-down.
  6. Click Replace All.
  7. Click Done.
Find and Replace settings for converting currency text to numbers

This will remove the currency symbols and make the values usable in calculations.

Convert Currency-Formatted Text to Numbers with Formulas

This is an alternative strategy. We will use a helper column to apply one of the formulas below:

=ARRAYFORMULA(VALUE(SUBSTITUTE(B2:B6, "$", "")))
=ARRAYFORMULA(VALUE(REGEXEXTRACT(B2:B6, "[\d.]+")))
Formula for converting currency-formatted text to numbers

In these formulas, replace “$” with the currency symbol used in your text within the specified range.

The SUBSTITUTE in the first formula replaces “$” with an empty string, and the VALUE function converts the text-formatted numbers to numeric values.

In the second formula, the REGEXEXTRACT function extracts the numbers and the decimal point, and the VALUE function converts the extracted text to numbers.

These are the formula approaches to convert currency-formatted text to numbers in Google Sheets.

Resources

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.

Hierarchical Number Sorting in Excel with Modern Functions

A hierarchical numbering system in Excel allows you to organize data into a clear,...

Dynamic Formula to Sum Every 7 Rows in Excel

To sum every 7 rows, you can use either a drag-down formula or a...

How to Extract Numbers from Text in Excel with Regex

You can use the REGEXEXTRACT or REGEXREPLACE functions to easily extract numbers from text...

Using OFFSET and MATCH Together in Google Sheets: Advanced Tips

One powerful and flexible way to look up values is by combining the OFFSET...

More like this

Using OFFSET and MATCH Together in Google Sheets: Advanced Tips

One powerful and flexible way to look up values is by combining the OFFSET...

Running Count with Structured References in Google Sheets

Running a count with structured references is achievable in Google Sheets tables using the...

Running Total with Structured Table References in Google Sheets

You can use two types of formulas to create a running total with structured...

3 COMMENTS

  1. Hi! It looks, like what I was searching for, but I just can’t manage it 🙂

    May you help me out?

    I have just one text field (in C1, “1,376.77” for example) that I want to convert into a number then to shown in E1. I use this, but it doesn’t work.

    =query({ArrayFormula(REGEXREPLACE(C1, "[^\d\.]+",)*1)},"Select *")

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.