Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
duncrbrt
 
Posts: n/a
Default Remove characters from a text string using a formula

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
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

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

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

Biff

"duncrbrt" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove text leading zero in text string Cheryl B. Excel Worksheet Functions 5 May 29th 05 07:46 PM
Remove text leading zero in text string Peo Sjoblom Excel Worksheet Functions 0 May 27th 05 09:59 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 09:56 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 12:25 AM
Remove single text characters mawme Excel Discussion (Misc queries) 1 January 27th 05 10:25 PM


All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"