+ Reply to Thread
Results 1 to 3 of 3

Deleting all non-numeric characters in a text-string?!

  1. #1
    Registered User
    Join Date
    12-29-2007
    Posts
    18

    Question Deleting all non-numeric characters in a text-string?!

    Hi all!

    I would like to delete all the non, numeric characters in a text-string, but keep the operator "+".
    Column A looks something like this right now:
    Best.nr St. 5 +
    Best.nr per par 100 +
    Best.nr paket 50 +

    and so on...
    Can you help me?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483
    Here is one way...

    This may seem Difficult, but it is not!!
    place this udf in a module
    Alt F11, insert,module, copy and paste code there
    Please Login or Register  to view this content.
    Originally found here http://www.ozgrid.com/forum/showthread.php?t=73788
    on the excel spread sheet enter this
    Best.nr St. 5 +
    in B1 enter this formula
    =ExtractNumeric(A1)&" +"

  3. #3
    Registered User
    Join Date
    12-29-2007
    Posts
    18

    Wow!

    Wow, thanks alot! Never did this VBA-stuff before, but might start teaching myself, seems awsome ty

+ 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