find first letters in a string of alphanumerics

zpierucci

New Member
Joined
Sep 5, 2019
Messages
42
I have a string ex: ".13 - LAR"

I would like to get the first letters, or non alphanumeric and non numeric characters of the string. They are not always the same distance from the beginning so I can't use left or right function. However they always begin in the 6th or 7th position.

Any thoughts?
 
If it is only one hyphen as in your example:

=TRIM(MID(A1,FIND("-",A1&"-")+1,255))


Excel 2010
AB
1.13 - LARLAR
2.13-BMYBMY
Sheet1
Cell Formulas
RangeFormula
B1=TRIM(MID(A1,FIND("-",A1&"-")+1,255))
B2=TRIM(MID(A2,FIND("-",A2&"-")+1,255))
 
Last edited:
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Sorry. Yes, it is always a hyphen between numbers and texts

In Excel, the Text to Columns feature also can help you to split the cell content from one cell into two cells separately by the dash.


1. Select the data range that you want to split by dash.


2. Click Data > Text to Columns


3. In step 1 of the Convert Text to Columns Wizard, select Delimited option


4. And then click Next button, in step2 of this wizard, check Other option under Delimiters section, and enter the dash (-) symbol into the text box


5. And then click Finish button, the selected cells have been split into two columns by the dash

-----------------

Or also with these options:

=TRIM(RIGHT(SUBSTITUTE(A1,"-",REPT(" ",99)),99))

=REPLACE(A1,1,FIND("-",A1)+1,"")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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