Remove characters from a text string using a formula

G

Guest

I need a formula where I can remove characters such as . - space or _. These
characters can show up anywhere in the text string. i.e.,
123-abc should be 123abc
123 abc should be 123abc

any help would be greatly appreciated,

Regards,

Robert
 
B

Biff

Hi!

Try this to remove periods(or decimal points), dashes(-), spaces, and
underscores( _ )

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,".",""),"-",""),"
",""),"_","")

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top