Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or
0
0
0
s2smodern

 How to extract numbers only from text strings in Google sheet?

If you want to extract only numbers from a list of text strings to get the result as following screenshot shown, how could you achieve this task in Google sheet?

Extract numbers only from text strings in Google sheet with formula


Extract numbers only from text strings in Excel worksheet:

With Kutools for Excel’s EXTRACTNUMBERS function, you can quickly extract only numbers from the text string cells in Excel worksheet.

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Extract numbers only from text strings in Google sheet with formula


The following formula can help you finish this job, please do as this:

1. Enter this formula: =SPLIT( LOWER(A2) ; "abcdefghijklmnopqrstuvwxyz " ) into a blank cell where you want to extract the numbers only, and then press Enter key, all the numbers in Cell A2 have been extracted at once, see screenshot:

2. Then select the formula cell, and drag the fill handle down to the cells that you want to apply this formula, and all numbers have been extracted from each cell as following screenshot shown:


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
People in conversation:
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    CC · 6 months ago
    this is useful, but doesn't fully solve my problem. When I use this formula, punctuation marks and non-Latin characters are also treated as numbers. Is the best way around this to expand the list of characters in the quotation marks as currently written? My approach for now has been to try and clean the data of any existing punctuation, but the stuff written in Cyrillic is necessary information that I cannot remove.
    • To post as a guest, your comment is unpublished.
      skyyang · 6 months ago
      Hello,
      If there are some other punctuation marks and non-Latin characters in your text strings, you can apply this formula to extract the numbers only:
      =REGEXREPLACE(A1,"\D+", "")
      Hope it can help you, thank you!
      • To post as a guest, your comment is unpublished.
        santhosh · 6 months ago
        problem when you have two string of numbers in the text.
        • To post as a guest, your comment is unpublished.
          skyyang · 6 months ago
          Hi santhosh,
          Yes, as you said, this formula only can extract all the numbers into one cell.
          If you have any other good formulas, please comment here.
          Thank you!