+ Reply to Thread
Results 1 to 4 of 4

if not numeric and letter then replace character help

  1. #1
    Forum Contributor
    Join Date
    09-19-2004
    Posts
    252

    if not numeric and letter then replace character help

    I have a list of supplier part numbers and our system will not handle special characters so I'm trying to write a visual basic function that pretty much says if there are any characters in a cell that are not numberic and not letters then remove them. I know that there's a isnumberic function but can't for the life of me figure out how to use it and a letter counterpart to achieve this purpose.

    So far, I'm replacing things as I come accross them but I'm thinking that it's not really a good idea to have to edit the code every time I come accross something new.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi
    You can use a Regular Expression for this eg:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-19-2004
    Posts
    252
    I'm trying to keep the prefix too so I changed the code to look like this but it doesn't work with the prefix part, how can I adjust it?
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-19-2004
    Posts
    252
    Nevermind, I found the error
    Please Login or Register  to view this content.
    This is perfect, thank you!

+ 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. Formula for a letter typed
    By manbugle in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-26-2007, 01:23 PM
  2. Trying to add numeric values in range
    By windme in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2006, 10:07 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