• 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.

Extract only text

Dear Sir,

1 Please provide me any formulas for how can i extract only text

like asdfasdfasdfasdfasdf456+45614561456asdfasdf%%%%asdfasdf

want only text not numeric
2 please provide me any formulas for how can i extract only numeric
 
Hi Rahul,
There are many ways shared here, if you search it you will find, but I remembered Sir @shrivallabha shared a very useful formula:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,1,""),2,""),3,""),4,""),5,""),6,""),7,""),8,""),9,""),0,"")

Regards,
 
Hi

For Text Only

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

For Numbers Only Change True to False
 
Back
Top