Skip to main content

How to extract decimal numbers from text string in Excel?

Author: Xiaoyang Last Modified: 2020-07-24

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


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.


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 30 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 > Kutools Functions > Text > EXTRACTNUMBERS, see screenshot:

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!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


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!
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations