Removing numerical text values and leaving only alpha letters

Executioner

Board Regular
Joined
Sep 26, 2005
Messages
166
Hi everyone,
I have one column A of data that looks like this:

AAL2074883-XX / A
AAL2075713-XX / A
AAL2075715-XX / A
AP2925411 / D
AP2928142 / H
AP2928142 / J

I have inserted a new column B so I can filter the alpha characters only. In the example above, it should look like:
Code:
A                        B
AAL2074883-XX /  A	AAL
AAL2075713-XX /  A	AAL
AAL2075715-XX /  A	AAL
AP2925411 /  D	        AP
AP2928142 /  H	        AP
AP2928142 /  J	        AP

The formula that I'm working with looks like this:
=LEFT(A2,3-ISNUMBER(MID(A2,2,1)+0))

This works only for the first 3 rows. Rows with only 2 alpha characters show up with a number - AP2 for example. Not sure how to adjust my formula to make it work correctly. Thanks for your help.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi

Another option:

=LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1)
 
Upvote 0
Hello

Or this, another one of Andrew's modified slightly.

=SUBSTITUTE(A2,MID(A2,MIN(SEARCH({0;1;2;3;4;5;6;7;8;9},A2&1234567890)),100),"")
 
Upvote 0

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

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