FormulaCraft

How to extract a currency amount from a text string in Excel and Google Sheets

Topic:Text manipulation

Heads up: Excel and Google Sheets do this differently.

Excel
=VALUE(SUBSTITUTE(SUBSTITUTE(MID(A2, MIN(IFERROR(FIND({"$","€","£","₹"}, A2), LEN(A2)+1)), 20), ",", ""), "$", ""))
Google Sheets
=VALUE(SUBSTITUTE(REGEXEXTRACT(A2, "[$€£₹]?([\d,]+\.?\d*)"), ",", ""))

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Place text strings containing amounts in A2:A5, e.g. "Invoice total: $1,250.00", "You owe €340", "Refund of £99.99 processed".
  2. 2In Google Sheets, enter =VALUE(SUBSTITUTE(REGEXEXTRACT(A2, "[$€£₹]?([\d,]+\.?\d*)"), ",", "")) in B2.
  3. 3REGEXEXTRACT pulls the first numeric string (with optional currency prefix) from the text; SUBSTITUTE removes thousands separators; VALUE converts to a number.
  4. 4In Excel, the FIND array locates the first currency symbol, MID extracts 20 characters from that position, and nested SUBSTITUTE strips the symbol and commas before VALUE converts to a number.
  5. 5Format the result column as Currency or Accounting in the cell format dialog for clean display.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What if the currency symbol comes after the number (e.g. '1,500 EUR')?

Adjust the regex to drop the symbol anchor: =VALUE(SUBSTITUTE(REGEXEXTRACT(A2, "([\d,]+\.?\d*)"), ",", "")) — this captures the first numeric sequence regardless of symbol position.

How do I handle amounts with both thousands separators and decimal points?

SUBSTITUTE removes commas (1,250.00 → 1250.00) before VALUE converts to a number. For European format (1.250,00), SUBSTITUTE the period first, then replace the comma with a period: VALUE(SUBSTITUTE(SUBSTITUTE(..., ".", ""), ",", ".")).

Does the Excel formula work for amounts without a currency symbol?

The Excel MID+FIND formula requires a known symbol to anchor the search. For symbol-free amounts, use =VALUE(SUBSTITUTE(REGEXEXTRACT-equivalent,...)) or extract with TEXTSPLIT and VALUE-test each token.

More on Text manipulation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: