Excel formula to pick only number from text

udaykundapur

New Member
Joined
Oct 2, 2013
Messages
3
Hi Experts,

I want a excel formula which picks only number from text. I have a column contains only numbers (456) and numbers and text (NUM 123), but I wanted only nubmers in the another cell. Please suggest.

Tickets
NUM 123 shoul display as 123
456 should display as 456
NUM 678 shoule display as 678
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How about:

=IFERROR(RIGHT(A1,LEN(A1)-FIND(" ",A1)),A1)+0

or you could do a find and replace. Find value would be * followed by a space. Replace value would be empty.
 
Upvote 0
In B2 enter and copy down:

=IF(ISNUMBER(1/A2),A2,REPLACE(A2,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1,"")+0)
 
Upvote 0
Are there always "NUM " in cells with number and text?
Whether the text is always at the begining?
How long are your numbers (3 digits, 4 digits, with decimals or without?)
If there is always "NUM " then we can use simple formula.
Code:
=--SUBSTITUTE(A1,"NUM ","")
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,931
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top