+ Reply to Thread
Results 1 to 4 of 4

Extracting Just Numbers

  1. #1
    Registered User
    Join Date
    04-18-2006
    Posts
    11

    Extracting Just Numbers

    Is there an easy way to extract only numbers from a cell. Example: The cell contains: FR 235X20-18.2 TRXAT

    I want to be able to get 23520182 from that cell

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting Just Numbers

    If you download and install Morefunc.xll from here for free: http://download.cnet.com/Morefunc/30...-10423159.html

    then apply formula:

    =REGEX.SUBSTITUTE(A1,"[^0-9]","")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Extracting Just Numbers

    VBA can help u
    take a look here
    http://www.ozgrid.com/VBA/ExtractNum.htm


    edit

    delete no way...
    Last edited by contaminated; 12-22-2009 at 02:31 PM.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Extracting Just Numbers

    With
    A1 containing an alphanumeric string: eg 9128ABC37DEF465

    This ARRAY FORMULA, committed with CTRL+SHIFT+ENTER
    (instead of just ENTER) returns ONLY the numbers:

    Please Login or Register  to view this content.


    In the above example, the formula returns: 912837465

    Note: That particular formula only works with strings up to 25 chars containing up to 15 digits.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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