+ Reply to Thread
Results 1 to 4 of 4

Find alpha chars in alphanumeric string

  1. #1
    Registered User
    Join Date
    12-29-2011
    Location
    San Diego, Ca.
    MS-Off Ver
    Excel 2007
    Posts
    65

    Unhappy Find alpha chars in alphanumeric string

    Have a simple VBA procedure to pull out an alpha string from an alpha-num string as follows:

    Please Login or Register  to view this content.
    This works well EXCEPT if the number has trailing zeros, e.g., 21.100. Can this be fixed to work or do I need to go to something more complex.

    thanks
    Last edited by alansidman; 01-18-2014 at 05:26 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,672

    Re: Find alpha chars in alphanumeric string

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between
    Please Login or Register  to view this content.
    tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (I have added them for you today. Please read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find alpha chars in alphanumeric string

    Is this code something you can work with?
    Please Login or Register  to view this content.
    If
    A1: 21.123testF

    Then
    B1: =PullOnly(A1,"letters")
    returns: testF

    and
    C1: =PullOnly(A1,"digits")
    returns: 21.123
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    12-29-2011
    Location
    San Diego, Ca.
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Find alpha chars in alphanumeric string

    Ron,
    Thanks and this does work although I'm a bit sketchy on some of the details. I will study.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 05-21-2012, 04:07 PM
  2. Remove alpha character in alphanumeric string
    By fun4four in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-28-2010, 04:22 PM
  3. Extract Numeric and Alpha strings from Alphanumeric String
    By Gos-C in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2007, 07:34 PM
  4. Find largest alphanumeric value matching alpha criteria in databas
    By Alison in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. Find largest alphanumeric value matching alpha criteria in databas
    By Alison in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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