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

or

How to extract decimal numbers from text string in Excel?

Supposing, there are some text strings which including some decimal numbers in your worksheet, how could you extract only the decimal numbers from the text strings quickly and easily? This article, I will talk about some handy tricks to solve this problem for you in Excel.

Extract decimal numbers from text string with formulas

Extract numbers only from text string with Kutools for Excel


Extract numbers from text string:
With Kutools for Excel’s EXTRACTNUMBERS function, you can quickly extract only numbers from the text string cells. Read more about this Extract Numbers feature...

arrow blue right bubble Extract decimal numbers from text string with formulas


Here are some long formulas for you to extract decimal numbers from cells, please do as follows:

1. Enter this formula into a blank cell where you want to output the result: =LOOKUP(9.9E+307,--LEFT(MID(A2,MIN(FIND({1,2,3,4,5,6,7,8,9,0}, $A2&"1023456789")),999),ROW(INDIRECT("1:999")))), and then press Enter key to extract the decimal numbers, see screenshot:

doc extract decimal numbers 1

2. And then select the cell C2, and drag the fill handle down to the cells that you want to contain this formula, all the decimal numbers have been extracted from the text strings, see screenshot:

doc extract decimal numbers 2

Notes:

1. If there are more than one number within a cell, with above s formula, only the first number will be extracted.

2. Except the first normal formula, here is another array formula: =--MID(A2,MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9,".",","},A2),"")),COUNT(--MID(SUBSTITUTE(SUBSTITUTE(A2,".",0),",",0),ROW($1:$99),1))), and then remember to press Ctrl + Shift + Enter keys together to get the correct result. If there are more than one number within a cell, after applying this formula, an error value will be displayed.

3. These formulas also can extract the whole numbers as well.

Tips: May be this formulas is difficult for you to remember to use next time, so, you can add and save it into the Auto Text, and then you can reuse it anytime in any workbooks. Read more about this feature...

doc extract decimal numbers 3


arrow blue right bubble Extract numbers only from text string with Kutools for Excel

If you have Kutools for Excel, with its Extractnumbers function, you can quickly extract numbers only from text strings without remembering any formulas.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

After installing Kutools for Excel, please do as follows:( Free Download Kutools for Excel Now! )

1. Click a cell where you want to locate the extracted number.

2. Then click Kutools > Functions > Text > EXTRACTNUMBERS, see screenshot:

doc extract decimal numbers 4

3. In the Function Arguments dialog box, click doc extract decimal numbers 6 button besides TXT to select a cell that you want to extract number from, and then enter true or false into the N text box as you need, (True will return the numeric number, and False will return the text format.) see screenshot:

doc extract decimal numbers 5

4. Then click OK button, the number is displayed in the selected cell, and then you can select the cell and drag the fill handle down to the cells which you want to apply this function, all numbers have been extracted at once, see screenshot:

doc extract decimal numbers 7

Notes:

1. If there are more than one number within a cell, all numbers will be extracted together.

2. This function is only applied to extracting the whole number.

Free Download Kutools for Excel Now!


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.