View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
richzip richzip is offline
external usenet poster
 
Posts: 74
Default SUBSTITUTE multiple text strings

thanks everyone ..it worked perfectly!

"T. Valko" wrote:

If it is less than eight, you can nest SUBSTITUTE functions.


If you're using Excel 2007 you can nest up to 64 levels plus the top level =
65.

One of these days I'm going to try that out just to see what it looks like!

--
Biff
Microsoft Excel MVP


"Ron Rosenfeld" wrote in message
...
On Wed, 30 Jan 2008 20:26:10 -0800, richzip

wrote:

I have a column of concatenated text, and would like to add another column
that "deletes" certain strings of characters if it is found in the
concatenated column.
For example, if text strings of "xx" or "yy" are found, I want those
characters to be deleted. So, WWXX would just show as WW; YYZZ would just
show as ZZ.

I found I can use the substitute function to search for just one string:
=SUBSTITUTE(A2,"XX,""). Can I modify this formula to perform the
replacement if XX or YY is found?


How many different types of strings will need to be deleted?

If it is less than eight, you can nest SUBSTITUTE functions.
--ron