Extracting a string of letters from a cell?

naumannerika05

New Member
Joined
Mar 30, 2011
Messages
2
I am trying to extract a string of alpha/numeric characters. The string always begins with a "L", but the subsequent characters could be various lengths. For instance, A104LCRTI1 would be the cell and I would want to extract the "LCRTI1". I tried the function =right(cell,6), but the problem is that the number of characters after "L" could vary with each cell. Does anyone know how to extract the string of characters beginning with the "L" that have varying character lengths after the "L" and return the string starting with the "L"? I am working with a 49,000 line spreadsheet so some assistance would be appreciated. Thanks!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

GTO

MrExcel MVP
Joined
Dec 9, 2008
Messages
6,155
Maybe?
Excel Workbook
BC
2A104LCRTI1LCRTI1
Sheet1
Excel 2003
Cell Formulas
RangeFormula
C2=MID(B2,FIND("L",B2),255)
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
=replace(a1,1,find("L",a1&"L")-1,"")
 

Haseeb Avarakkan

Well-known Member
Joined
Sep 28, 2010
Messages
902
Office Version
  1. 365
Platform
  1. Windows
Hello, Welcome to MrExcel.

Try this;

=MID(A1,FIND("L",A1),250)

** FIND function is case sensitive, replace with SEARCH, if you need incase sensitive.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,601
Messages
5,838,277
Members
430,536
Latest member
Manoj Gaidhankar

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
Top