Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
Heads up: Excel and Google Sheets do this differently.
=IFERROR(VALUE(TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",100)),(SEQUENCE(LEN(A2)-LEN(SUBSTITUTE(A2," ",""))+1)-1)*100+1,100))),"")=IFERROR(REGEXEXTRACT(A2, "(\d+(?:\.\d+)?)"), "")Computed by a real spreadsheet engine on the sample data below.
| Text |
| Order 42 shipped 3 items |
| Temperature: 98.6 degrees |
| Ref 1001 batch 7 |
| Price $12.50 qty 4 |
=IFERROR(VALUE(TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",100)),(SEQUENCE(LEN(A2)-LEN(SUBSTITUTE(A2," ",""))+1)-1)*100+1,100))),"")→
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need the Google Sheets version instead? Open Sheets variant in workspace →
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Use =SPLIT(REGEXREPLACE(A2, "[^0-9.]+", " "), " ", TRUE, TRUE) to strip non-numeric characters and split on spaces — each number lands in its own cell.
The SUBSTITUTE/REPT approach works on space-separated tokens, so decimals like '3.14' are extracted whole if they are surrounded by spaces. Decimals embedded in words (e.g. '3.14kg') require Power Query or a LAMBDA-based character-by-character scan.
Extract everything after the first delimiter with MID and FIND, including multi-character delimiters and explicit missing-delimiter handling.
How-toSplit a full name or any delimited text into separate columns. Google Sheets uses SPLIT; Excel uses TEXTSPLIT — here is each.
How-toClean leading, trailing, and double spaces with TRIM — the usual fix for lookups that fail on values that look identical.
How-toTurn numbers stored as text into real numbers with VALUE or by multiplying by 1 — the fix for sums that ignore values.
How-toPull everything after the @ from an email using FIND and MID. Works the same in Excel and Google Sheets.
How-toGet the first name from a full name with LEFT and FIND, splitting on the first space. Works in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: