View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default if and replace function?

Hi,

Am Wed, 22 May 2013 11:51:57 -0700 (PDT) schrieb :

There are certain names that have to remain the same as the original data
but another 36 or so I have to trim the space after the comma
So I would have to hard code those 36 names in the formula if you can just hard code 2 for me I can do the rest.


your names in column A. I wrote the names that will remain the space in
column H. Then in B1:
=IF(COUNTIF($H$1:$H$36,A1)=0,SUBSTITUTE(A1,", ",","),A1)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2