View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default Search and translate

Put this in B1:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"1","Red"),"2 ","Green"),"3","Black")

and copy down to B5.

Hope this helps.

Pete

On Jun 24, 1:43*pm, Matt wrote:
I need to search a column for specific characters and "translate" the
characters into meaningful explanations in the next column.
i.e. Column A, cells 1 thru 5 have the following characters
1,2,3
1,2
2
1,3
2,3

I need to "translate" these codes to be meaningful, so column B, cells 1
thru 5 would read:
red, green, black
red, green
green
red, black
green, black

Any Ideas?
Thx, Matt