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!


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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.