• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How can I separate numbers from text ?

uday

Member
Please suggest me to separate numbers from cell that contain text along with the number.
The length of the data can be anything.It can 1,2 or above 100.
 
I did not understand the manual solution?Could you please explain me in details if miss out something ?
 
Every number...I want extract only numbers from the cell which contain text and other special charecters
 
This should also work:

Code:
Function SaperateNum(Num As String)
For i = 1 To Len(Num)
m = Mid(Num, i, 1)
If IsNumeric(m) = True Then Numm = Numm + m
Next i
SaperateNum = Numm
End Function
 
Last edited:
Back
Top