Extract Text from Alpha Numeric String on Excel without use of VBA

manisha.gupta

New Member
Joined
Jul 13, 2012
Messages
11
HI,

I want to extract TEXT from the begining of the the below mention Alphanumeric string with the help of formulae and not VBA. Please help:


ROW A
ALR300M13</SPAN>
AMZN1600V12</SPAN>

<TBODY>
</TBODY><COLGROUP><COL></COLGROUP>

from the above string I want my output as the below:

ALR
AMZN in Row B from ROW A
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi
Try:


Excel 2007
AB
1ALR300M13ALR
2AMZN1600V12AMZN
Sheet1
Cell Formulas
RangeFormula
B1=LEFT(A1,MIN(FIND({1,2,3,4,5,6,7,8,9,0},A1&1234567890))-1)
 
Upvote 0
Code:
=left(a14,find("0",substitute(substitute(substitute(substitute(substitute(substitute(substitute(substitute(substitute(a14,"1","0",1),"2","0",1),"3","0",1),"4","0",1),"5","0",1),"6","0",1),"7","0",1),"8","0",1),"9","0",1))-1)
 
Upvote 0
Welcome to the board.

Try
=LEFT(A1,MIN(SEARCH({1,2,3,4,5,6,7,8,9,0},A1&{1,2,3,4,5,6,7,8,9,0}))-1)
 
Upvote 0
I have a question agin for the above query but if my Alpha Numeric String is like below how do I Extract the TEXT before . from the same list of string

Column A
FB350H12</SPAN>
FNP140G12</SPAN>
FNP150G12</SPAN>
PCLN6400S12</SPAN>
PCX.US10X12</SPAN>
PCX.US15X12</SPAN>

<TBODY>
</TBODY><COLGROUP><COL></COLGROUP>

Output I want is:
FB</SPAN>
FNP</SPAN>
FNP</SPAN>
<st1:stockticker>PCLN</st1:stockticker> </SPAN></SPAN>
PCX</SPAN>
PCX</SPAN>

<TBODY>
</TBODY><COLGROUP><COL></COLGROUP>
 
Upvote 0
You could use this variant:


Excel 2007
AB
1ALR300M13ALR
2AMZN1600V12AMZN
3PCX.US15X12PCX
Sheet1
Cell Formulas
RangeFormula
B1=LEFT(A1,MIN(FIND({1,2,3,4,5,6,7,8,9,0,"."},A1&123456780.9))-1)
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top