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.

Marking Case-Sensitive Unique Values in Excel

Marking case-sensitive unique values provides several benefits compared to merely extracting them in an...

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Compare Two Tables for Differences in Excel

To compare two tables with similar data for differences, you can use the XLOOKUP...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

More like this

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

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.