+ Reply to Thread
Results 1 to 5 of 5

Trim to separate numbers from alphanumeric strings

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Trim to separate numbers from alphanumeric strings

    Hi,

    Does anyone know how to trim a column of data just to get the front number?
    456abcv -->456
    11ufg -->11
    1190audk-->1190

    Thanks a lot!
    VBisgreat

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Trim to separate numbers from alphanumeric strings

    In code or as a formula?
    Remember what the dormouse said
    Feed your head

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Trim to separate numbers from alphanumeric strings

    Here is a Macro Solution... just Select the area you want to .."trim" and then run this macro.


    Please Login or Register  to view this content.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Trim to separate numbers from alphanumeric strings

    Since the numbers are at the start, you can just use Val:
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Trim to separate numbers from alphanumeric strings

    HI romperstomper:
    Wow , thanks ... I hadn't seen that one before . I'll be remembering that one

+ 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