• 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 to remove space special characters within cells ?

Hello,


Can anyone help on this? Data may extend to 1000 cells


http://www.fileconvoy.com/dfl.php?id=g4a11ebfd720bbd2c999242718585202ff4493f8b6


best wishes

pradeep
 
Hi,


But special characters are not restricted to "-" ,"$" only. It may be anything.


What will happen in that case?Can i use the same formula to get the results?


best wishes


pradeep
 
@Pradeep


Hi


for my self create on UDF code in your file that is

[pre]
Code:
Function removeSpecial(sInput As String) As String
Dim sSpecialChars As String
Dim i As Long
sSpecialChars = "#,$-/:*?""<>| "
For i = 1 To Len(sSpecialChars)
sInput = Replace$(sInput, Mid$(sSpecialChars, i, 1), "")
Next
removeSpecial = sInput
End Function
[/pre]

then try in D4 as


=SUBSTITUTE(removeSpecial(B4),"","")


Hope it will clear


Note: - If you have more special characters then you can add in the array if you wish


Thanks


SP
 
Hi Pradeep Pradhan !   Maybe it will be easier if you tell us what characters you want to keep …

Like only alphabetics & numbers ones, any punctuation marks ? …
 
Back
Top