Return an Alpha based on number position in a word
Just to add to Domenic's fine suggestion, if Column B is *true* XL dates,
formatted as 'ddmm', then you might try this:
=MID("J"&$C$1,MID(TEXT(A2,"ddmm"),1,1)+1,1)&MID("J "&$C$1,MID(TEXT(A2,"ddmm")
,2,1)+1,1)&MID("J"&$C$1,MID(TEXT(A2,"ddmm"),3,1)+1 ,1)&MID("J"&$C$1,MID(TEXT(
A2,"ddmm"),4,1)+1,1)
--
HTH,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Domenic" wrote in message
...
Maybe...
C2, copied down:
=MID("J"&$C$1,MID(B2,1,1)+1,1)&MID("J"&$C$1,MID(B2 ,2,1)+1,1)&MID("J"&$C$1
,MID(B2,3,1)+1,1)&MID("J"&$C$1,MID(B2,4,1)+1,1)
Hope this helps!
In article ,
"Don Anderson" wrote:
I would like to return 4 letters in a word based on their number
position in
the word.
In B2:B366 I have DDMM and in C1 I have a 10 letter word ABCDEFGHIJ,
where A
= 1 and J = 10.
In C2:C366 I would like to return the 4 letters from C1 that correspond
to
the numbers in B2:B366.
Can I do this with a formula? If so, what would this formula look
like?
B1 = DDMM
B2 = 0104
B3 = 0204
B4 = 0304
B5 = .....
C1 = ABCDEFGHIJ
C2 = JAJD
C3 = JBJD
C4 = JCJD
C5 = .....
Thx,
Don
|