+ Reply to Thread
Results 1 to 4 of 4

How to remove digits from the end of an alphanumeric string?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2011
    Posts
    1

    How to remove digits from the end of an alphanumeric string?

    Hi Everyone, this is my first post!!!

    I have a very long list of stings at the end of each there is a number that I wish to remove. Here are three items as example:

    Samsung Electronics Co., Ltd.18844
    Panasonic Corporation176
    International Business Machines Corp.1616

    Could not find a way to remove the number since the number of digits changes...

    Does any one have a solution. Would greatly appreciate it.

    Many thanks,

    Uz123

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: How to remove digits from the end of an alphanumeric string?

    Hi

    Try this code:

    Uz123.xlsm

    Regards...
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to remove digits from the end of an alphanumeric string?

    Hi and welcome to the forum

    Or using an Array formula(Control+Shift+Enter), not just Enter!

    =LEFT(A1,MATCH(1,ISNUMBER(MID(A1,COLUMN($1:$1),1)*1)*1,0)-1)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: How to remove digits from the end of an alphanumeric string?

    If yor are looking to remove everything after the first number position,

    =LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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