views:

17

answers:

2

i have a column with this data:

IT_AMPH
IT_BARB
IT_BENZ
IT_BUP
SOMA

i want the column next to it to be literarely

=like "*,IT_AMPH,*"
=like "*,IT_BARB,*"
=like "*,IT_BENZ,*"
etc

please note that i want the equal signed to be displayed, exactly as shown above

what would be the formula for this?

+1  A: 

this should do it..

="=like ""*," & othercolumn & ",*"""
Gaby
you're the man! thanks so much
I__
+1  A: 
="=like ""*," & A1 & ",*"

Excel is smart enough to know that the string you are creating is not itself a formula. Btw, this really belongs on superuser.com instead of stackoverflow.

Thomas