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.

Lookup Previous Values Dynamically in Excel and Google Sheets

Sometimes, you may want to look up the previous values relative to the current...

Sort Data but Keep Blank Rows in Excel and Google Sheets

Using a dynamic array formula or the FILTER command, we can sort data and...

Lookup Values Under Categories in Excel and Google Sheets

We can use a combination of XLOOKUP and VLOOKUP in both Excel and Google...

Extract Items Under a Category from the Same Column in Excel

In Excel, you can use a combination of the XLOOKUP and DROP functions to...

More like this

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

Limit Formula Expansion to a Specific Row in Google Sheets

In this tutorial, I’ll explain how to limit the expansion of an array formula...

3-D Referencing Structured Data Tables in Google Sheets

When you have several tables within a single sheet—not across multiple sheets in a...

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.