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!
 

Some videos you may like

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

GTO

MrExcel MVP
Joined
Dec 9, 2008
Messages
6,154
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,955
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,549
Messages
5,529,468
Members
409,883
Latest member
asharris90
Top