View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
pogiman pogiman is offline
external usenet poster
 
Posts: 10
Default Substitute function

Does the text you want to remove appears in all records? Try using
Find/Replace but be careful in using it. Determine the unique text format so
that other texts may not be affected.

Sample:
FIND REPLACE
DES:MERCH SETL "leave blank"
_CO_ (_=space bar) "leave blank"


momotaro wrote:
Can anyone help me to find out how to use substitute function? Here is my
example:

Description: BANKCARD DES:MERCH SETL ID:1xxxxxxxxxxx,INDN:ABC COMPANY
CO ID:1AAAAAAAAA CCD

I'd like to get rid of "DES:MERCH SETL" and "CO". Here is my formula
=TRIM(SUBSTITUTE(SUBSTITUE(B6,"DES:MERCH SETL","","CO",""))

Any susgessions? Thanks.