+ Reply to Thread
Results 1 to 5 of 5

Extract letters before first number

Hybrid View

j.lancaster1 Extract letters before first... 08-20-2012, 06:47 PM
daddylonglegs Re: Extract letters before... 08-20-2012, 06:58 PM
rscsmith Re: Extract letters before... 08-20-2012, 06:59 PM
j.lancaster1 Re: Extract letters before... 08-21-2012, 12:57 PM
Cutter Re: Extract letters before... 08-21-2012, 08:49 PM
  1. #1
    Registered User
    Join Date
    07-16-2012
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    34

    Extract letters before first number

    Hello,

    In B3 I have A120922C00023000

    I would like I3 to pull out all letters before the first number ("A", in this example). However, the number of letters before the first number varies in each row. For example, the next time it could be GRNA120922C0023000, and I want I3 to say "GRNA."

    Any help on resolving this is greatly appreciated.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Extract letters before first number

    Try this formula in I3

    =LEFT(B3,MIN(FIND({1,2,3,4,5,6,7,8,9,0},B3&1234567890))-1)
    Audere est facere

  3. #3
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Extract letters before first number

    Hi.

    If the first number is always 1, the following will work:
    =LEFT(A3,FIND("1",A3)-1)

    Otherwise, someone else will have to answer, as I can't think of a generic formula that would do this.

    Best regards, Rob.

  4. #4
    Registered User
    Join Date
    07-16-2012
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Extract letters before first number

    Hey,

    Thanks for responding. Both formulas worked, thanks again!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Extract letters before first number

    @ j.lancaster1

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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