+ Reply to Thread
Results 1 to 3 of 3

text problem

  1. #1
    Registered User
    Join Date
    04-20-2005
    Posts
    1

    text problem

    Hi all

    I have the following task I want carry out

    In a cell I have the following initials and number combinations

    DR7 or AZR20

    as some names have middle names there are a mixture of 2 or three letters mixed with 1 or 2 numbers.

    How can I extract the letters only to show DR and AZR only in the above example

    thanks in advance

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Will this work for you:

    =LEFT(A1,2+ISERROR(FIND(MID(A1,3,1),"0123456789")))

    Where the alphanumeric code is in cell A1.

    If there can be a varied number of initials then this will work:

    =LEFT(A1,MIN(FIND({0;1;2;3;4;5;6;7;8;9},$A1&"0123456789",2))-1)
    (Note: Commit that array formula by pressing [Ctrl]+[Shift]+[Enter])

    Ron
    Last edited by Ron Coderre; 04-20-2005 at 08:53 AM.

  3. #3
    Registered User
    Join Date
    04-20-2005
    Posts
    1
    Thanks a million Ron

    Thanks for your help and time

    cheers
    Dennis

+ 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