+ Reply to Thread
Results 1 to 9 of 9

Separate Alpha and numeric characters

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Separate Alpha and numeric characters

    Dear all,

    I need a macro to delete only the alphabets which are entered along with numbers. Ex: 300ML. BY running a macro i need to delete only the "ML" and the number 300 should remain the same.

    Range is For Rows: Entire rows
    For columns: F TO P

    The cell values betwwen these ranges contains alphanumeric such as 20KG,300ML,200M ...etc

    Hence i need a macro to delete the alpha charecters for the particular range.

    Can anybody help me in this regard.


    Thanks in Advance.

    Alex
    Last edited by sivdin; 05-06-2009 at 06:26 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    re: Separate Alpha and numeric characters

    It's not really clear whether all text strings are to be altered or only those containing numbers (ie do you have strings such as "apple" which should be ignored?)... also unsure as to whether the numbers always precede the alphas... assuming the answer to both is yes then:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Separate Alpha and numeric characters

    If your numeric parts are the first characters then you can use Val
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    re: Separate Alpha and numeric characters

    Thank you very much .Ur understanding was right according to what i explained.
    I will try this code.
    Also,Thanks roy for ur code.

  5. #5
    Registered User
    Join Date
    07-22-2008
    Location
    Malaysia
    MS-Off Ver
    2007
    Posts
    62

    re: Separate Alpha and numeric characters

    I used this function although this only separate the numbers

    Please Login or Register  to view this content.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Separate Alpha and numeric characters

    Your Function doesn't need to use Val and can easily be adapted to extract letters
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: Separate Alpha and numeric characters

    Thank you very much everyone!!!!!

  8. #8
    Registered User
    Join Date
    08-08-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Separate Alpha and numeric characters

    In a column i had alphanumeric and other text but i need only alphanumeric value only to can u help me
    ex: HL5340D Toner Cartridge 3K TN3230
    i want [HL5340D] this value in to another cell

  9. #9
    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: Separate Alpha and numeric characters

    Welcome to the forum.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    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.

+ 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