+ Reply to Thread
Results 1 to 3 of 3

Extracting all numbers from a cell?

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Extracting all numbers from a cell?

    Hello,

    Sometimes I use the following formula to extract numbers from a cell that has both text and numerals:

    =LOOKUP(99^99,--("0"&MID(H66,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},H66&"0123456789")),ROW($1:$10000))))


    While this works well when there's only one number in the cell, if there are multiple numbers, it only returns the first one. For example, if this is cell H66:

    "NAME 3:90-125. 1959."

    ...the string only returns "3." Is there a way to return "3," "90," "125," and "1959" in separate cells?

  2. #2
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003/2007
    Posts
    182

    Re: Extracting all numbers from a cell?

    Hi,

    Could you please explain how your above formula works. I have checked it. It's fantastic.

    Thanks
    taps

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Extracting all numbers from a cell?

    I can't take credit for it. I found it on this thread:

    http://www.excelforum.com/excel-form...ic-string.html

    There's a good explanation in post #10.

+ 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