For crying out loud, somebody shoot me please:-
=VLOOKUP(LEFT(D1,1),Codes,2,0)&VLOOKUP(MID(D1,2,1),Codes,2,0)&VLOOKUP(MID(D1
,3,1),Codes,2,0)&RIGHT
Should be
=VLOOKUP(LEFT(D1,1),Codes,2,0)&VLOOKUP(MID(D1,2,1),Codes,2,0)&VLOOKUP(MID(D1
,3,1),Codes,2,0)&RIGHT
(D1,LEN(D1)-3)
I forgot to change the 4 to a 3 at the end.
--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL2K & XLXP
-------------------------------------------------------------------------- --
Attitude - A little thing that makes a BIG difference
-------------------------------------------------------------------------- --
=VLOOKUP(LEFT(D1,1),A1:B26,2,0)&VLOOKUP(MID(D1,2,1),A1:B26,2,0)&VLOOKUP(MID(
D1,3,1),A1:B26,2,0)&RI your data in A1:B26, go
into the cell, then do Insert
/ paste the contents of
your ={"A",66;"B",68;"C",33;"D",35;"E",84;"F",82;"G",63;"H",98;"I",91;"J",30;"K",
72;"L",26;"M",87;
"N",58;"O",12;"P",99;"Q",70;"R",11;"S",61;"T",19;"U",13;"V",81;"W",25;"X",14
;"Y",36;"Z",44}
=VLOOKUP(LEFT(D1,1),Codes,2,0)&VLOOKUP(MID(D1,2,1),Codes,2,0)&VLOOKUP(MID(D1
,3,1),Codes,2,0)&RIGHT on anything else,
otherwise
=INDEX(A1:A26,MATCH(--MID(D3,1,2),B1:B26,0))&INDEX(A1:A26,MATCH(--MID(D3,3,2
),B1:B26,0))&INDEX(A1:
--
-- then a set of random
numbe with the MID function
to generate a new code for
you.
=VLOOKUP(LEFT(D1,1),A1:B26,2,0)&VLOOKUP(MID(D1,2,1),A1:B26,2,0)&VLOOKUP(MID(
D1,3,1),A1:B26,2,0)&VL numbers, as you would either
need