+ Reply to Thread
Results 1 to 7 of 7

Extracting Characters from a cell before the first letter after the first series of number

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    wisconsin, united states
    MS-Off Ver
    2010
    Posts
    47

    Extracting Characters from a cell before the first letter after the first series of number

    In cell A1 I have two variables...E1L1, EJ10L10(for example)

    I would like in cell B1 the information before the character after the first series of numbers...These characters can vary in length

    So If A1 equals E1L1...then B1 equals E1

    If A1 equals EJ10L10...then B1 equals EJ10

    Seeing that the string of characters can vary a simple character from beginning extraction would not be suitable

    I'd prefer to do it with just a formula, but if a macro must be incorporated in the formula...That'd be acceptable

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extracting Characters from a cell before the first letter after the first series of nu

    In both cases the first character to be "thrown out" was an L. is that always the case?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    03-26-2015
    Location
    wisconsin, united states
    MS-Off Ver
    2010
    Posts
    47

    Re: Extracting Characters from a cell before the first letter after the first series of nu

    Unfortunately no

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extracting Characters from a cell before the first letter after the first series of nu

    Maybe something like this

    =IF(LEN(A1)<7,MID(A1,1,2),MID(A1,1,4))

    Row\Col
    A
    B
    1
    E1L1 E1
    2
    EJ10L10 EJ10
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extracting Characters from a cell before the first letter after the first series of nu

    Hi.

    The fact that you gave only two examples is perhaps not enough to be sure, but maybe:

    =LEFT(A1,MATCH(3,MMULT(N(ISERR(0+MID(MID(A1&"ζ",ROW(INDEX(A:A,1):INDEX(A:A,LEN(A1))),2),{1,2},1))),{1;3}),0))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extracting Characters from a cell before the first letter after the first series of nu

    I hope that you don't have too many to do. This works, but it's a tad slow!!!
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extracting Characters from a cell before the first letter after the first series of nu

    I should have added that these are Array Formulas. They're a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. extracting only letter characters
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 03-11-2015, 04:07 PM
  2. [SOLVED] Extracting Number of Characters
    By Excel-Access in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-24-2015, 03:35 PM
  3. Extracting a number (part of a series of numbers) from a text string
    By dannyjoer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-09-2012, 10:17 AM
  4. Replies: 2
    Last Post: 09-24-2010, 04:40 AM
  5. finding characters after a letter in cell
    By tinkerbelle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-05-2007, 11:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1