Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default A question about decoding, substitute or vlookup of character.

excel 97

sheet1:
y@o
l$ng
zh#ng
l!

sheet2:
! a
@ i
# o
$ u

decoding sheet1, i want the output to sheet3 be:
yio
lung
zhong
la

is there any easy worksheetfunction to do so?
thanks.
rgds.
alan
--END
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default A question about decoding, substitute or vlookup of character.

You could do it with following formula.

The first column of list on Sheet2 is NAMED decodeFM
The second column of list on Sheet2 is NAMED decodeTO

Then this formula would translate it.

Note that there can be only 1 coded character in the name,
(but it can have multiple occurances within that name)

The formula is an ARRAY formula:
it MUST be entered with CTRL SHFT ENTER:

=SUBSTITUTE(A2,INDEX(decodeFM,MATCH(1,N(A2<SUBSTI TUTE
(A2,decodeFM,decodeTO)),0)),INDEX(decodeTO,MATCH(1 ,N(A2<SUBSTITUTE
(A2,decodeFM,decodeTO)),0)))

if it doens't work = try reentering it as an ARAAY,
on the formula bar you MUST see CURLY BRACES around the formula.
{=SUBST...}



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


(Alan Pong) wrote:

excel 97

sheet1:
y@o
l$ng
zh#ng
l!

sheet2:
! a
@ i
# o
$ u

decoding sheet1, i want the output to sheet3 be:
yio
lung
zhong
la

is there any easy worksheetfunction to do so?
thanks.
rgds.
alan
--END


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default A question about decoding, substitute or vlookup of character.

keepitcool, thanks for the answer.
rgds.
alan
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
would like to substitute and return value of 0 for vlookup #N/A er egols Excel Worksheet Functions 3 June 26th 07 11:24 PM
Substitute Function Question #2 Krista Excel Discussion (Misc queries) 5 April 13th 07 07:54 PM
VLOOKUP - WISH TO SUBSTITUTE FALSE FOR A VALUE David Excel Discussion (Misc queries) 6 July 13th 06 01:43 AM
Decoding an old macro WendiL99 Excel Discussion (Misc queries) 1 June 19th 06 03:44 PM
Is there a VLOOKUP substitute when data is not in ascending order VJ7777 Excel Worksheet Functions 2 January 19th 05 08:32 AM


All times are GMT +1. The time now is 11:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"