Hi
try the following formula for cell A1:
=IF(EXACT(MID(A1,LOOKUP(2,1/(MID(A1,ROW(INDIRECT
("1:1024")),1)="-"),ROW(INDIRECT("1:1024")))+1,1),UPPER(MID
(A1,LOOKUP(2,1/(MID(A1,ROW(INDIRECT("1:1024")),1)="-"),ROW
(INDIRECT("1:1024")))+1,1))),"",LEFT(A1,LOOKUP(2,1/(MID
(A1,ROW(INDIRECT("1:1024")),1)="-"),ROW(INDIRECT
("1:1024")))))
Note: It does return an #NA error if no '-' exist. you can
shorten this formula if you do the following:
1. Define a name called 'seq' in the menu 'Insert - Name -
Define' and assign the following formula to it:
=ROW(INDIRECT("1:1024"))
2. Use the following formula
=IF(EXACT(MID(A1,LOOKUP(2,1/(MID(A1,seq,1)="-"),seq)
+1,1),UPPER(MID(A1,LOOKUP(2,1/(MID(A1,seq,1)="-"),seq)
+1,1))),"",LEFT(A1,LOOKUP(2,1/(MID(A1,seq,1)="-"),seq)))
-----Original Message-----
Yes, I don't have upper case letters after the lower case
letters, so AAA-ascv-DD is not an case. Even if will be I
don't need that text. I only need the text fromthe start
to "-" followed by an lower case letter. I fond how to
return the 3+1 letter : =MID(A1;SEARCH("-";A1;1)+1;1) --->
B.