+ Reply to Thread
Results 1 to 3 of 3

Macro to remove special caracter and all numbers behind,

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Macro to remove special caracter and all numbers behind,

    HI I would like to have some help to remove special caractar and all numbers behind.

    The numbers can look like this, format is general. And i would like to remove the space and - and space and the numbers on the left. In sheet 2 column c2 and down(can be empty between)

    The numbers can be with different amount of digits

    So first number below shall be like this 4073789

    There is also a little test sheet to test on.

    Need macro for this, because its part bigger project with more macroes.

    Please have a look.

    Thanks

    Abjac

    4073789 - 0000010
    4075018 - 0006466
    4075362 - 0006595
    4077148 - 0006721
    1733847 - 0000007
    0126055097 - 0000552
    4079534 - 0006935
    4079695 - 0007009
    4101319 - 0007092
    1734804 - 0000027
    4101367 - 0007140
    4103108 - 0007261
    2011918 - 0000001
    1735291 - 0000028
    1735299 - 0000008
    4102907 - 0007226
    1248191 - 0000448
    4103334 - 0000214
    4104515 - 0000244
    4105064 - 0007488
    1248525 - 0000895
    Attached Files Attached Files

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Macro to remove special caracter and all numbers behind,

    Hi, abjac,

    traditional way - looping thorugh the range:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Macro to remove special caracter and all numbers behind,

    That did the trick

    Thanks Holger.

    Have a nice evening Abjac

+ 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. [SOLVED] Need macro to remove numbers from text?
    By catmomma in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-14-2013, 04:10 AM
  2. [SOLVED] [SOLVED] Macro/Wildcard to remove only numbers excluding text with numbers
    By indianhp in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2013, 08:16 AM
  3. Replies: 8
    Last Post: 12-17-2012, 05:30 AM
  4. [SOLVED] remove spaces (special characters) after numbers
    By fareastwarriors in forum Excel General
    Replies: 13
    Last Post: 11-04-2012, 09:25 PM
  5. Macro to Paste Special Values, Remove Sheets and Save
    By Dexta_Dark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2008, 11:58 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