+ Reply to Thread
Results 1 to 4 of 4

Remove all characters except for numbers

  1. #1
    Registered User
    Join Date
    06-02-2015
    Location
    Cali
    MS-Off Ver
    2010
    Posts
    27

    Remove all characters except for numbers

    Hey guys,

    I need a solution to remove all characters in a cell except for numbers.

    For example: 123456John*-acdf

    Result: 123456

    Thanks in advance!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Remove all characters except for numbers

    A couple of questions...

    Is the number always at the beginning of the string?

    Will it always be a whole number?

    Will there ever be leading zeros to start the number?
    Last edited by Tony Valko; 12-05-2015 at 02:44 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Remove all characters except for numbers

    Try this formula

    In B1 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Data Range
    A
    B
    1
    123456John*-acdf
    123456
    2
    Test13224Test2
    13224
    3
    TestTest3654789
    3654789
    4
    Test321654Test3 Test4
    321654
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    06-02-2015
    Location
    Cali
    MS-Off Ver
    2010
    Posts
    27

    Re: Remove all characters except for numbers

    Thanks Alkey! Your solution worked! Genius!

+ 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] How to remove spaces between characters and numbers within cells in Excel?
    By Edgars.Aronietis in forum Excel General
    Replies: 8
    Last Post: 08-26-2015, 07:42 AM
  2. Remove All Characters except numbers from one column only.
    By tdal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2015, 01:39 AM
  3. [SOLVED] VBA, remove all characters within a string, except numerical characters and full stops
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-25-2015, 09:24 PM
  4. [SOLVED] Remove all characters before or after X# of characters
    By Ocean Zhang in forum Excel General
    Replies: 8
    Last Post: 07-22-2014, 12:13 AM
  5. [SOLVED] Remove First Three Characters
    By jasonjholt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-01-2013, 08:56 AM
  6. [SOLVED] Remove Text from Cell with Mixed Characters, Sum Remaining Numbers
    By eugeniusjr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-28-2013, 12:08 AM
  7. [SOLVED] remove spaces (special characters) after numbers
    By fareastwarriors in forum Excel General
    Replies: 13
    Last Post: 11-04-2012, 09:25 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