View Single Post
  #5   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 again,

Am Wed, 22 May 2013 20:58:39 +0200 schrieb Claus Busch:

=IF(COUNTIF($H$1:$H$36,A1)=0,SUBSTITUTE(A1,", ",","),A1)


if there are only 6 names to remove the space it is easier to write this
6 names in column H and then:
=IF(COUNTIF($H$1:$H$6,A1)0,SUBSTITUTE(A1,", ",","),A1)



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