+ Reply to Thread
Results 1 to 4 of 4

VBA Code to optimize and clean data - Remove spaces/dashes/plus/asterisk from numbers

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    Vila Real, Portugal
    MS-Off Ver
    Excel 2016
    Posts
    17

    VBA Code to optimize and clean data - Remove spaces/dashes/plus/asterisk from numbers

    Hey everyone!

    Is there any simple VBA code that I can use to clean some column with numbers like this:
    probii.png

    I need to remove spaces, dashes (-), plus signs (+) and asterisks (*), only maintain the slash (/).

    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: VBA Code to optimize and clean data - Remove spaces/dashes/plus/asterisk from numbers

    Hello JoaoVr,

    Do you not want to just use the Find/Replace feature?

    Thanks,

    Rvasquez

  3. #3
    Registered User
    Join Date
    03-12-2012
    Location
    Vila Real, Portugal
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: VBA Code to optimize and clean data - Remove spaces/dashes/plus/asterisk from numbers

    Quote Originally Posted by rvasquez View Post
    Hello JoaoVr,

    Do you not want to just use the Find/Replace feature?

    Thanks,

    Rvasquez
    I think it would work as also I'm having some trouble to delete some ' signals and some line breaks (Like someone pressed enter or something).

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: VBA Code to optimize and clean data - Remove spaces/dashes/plus/asterisk from numbers

    This webpage should help you find and replace the unknown.

    http://support.microsoft.com/kb/214204
    Thanks!

+ 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