Results 1 to 10 of 11

Thread: Extract Number From Alphanumeric Text

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    15
    Quote Originally Posted by Rajan_Verma View Post
    =LOOKUP(9.9E+307,1*LEFT(MID(A1,MIN(FIND({0,1,2,3,4 ,5,6,7,8,9},A1&"0123456789")),999),ROW($1:$999)))

    this formula is not extracting all digits from alphanumeric value

    My Input was a0-112455jkjk223
    and result is coming 0
    My formula was not meant as a replacement for this article's original formula. If you look at the section I quoted, you will see I was responding to this statement from the second message in this thread...

    "A link that shows how to extract numbers that are placed together. Ex. ABC123DE
    http://www.familycomputerclub.com/ex...eric-text.html"

    If the digits for the number are all placed together, my formula returns them... if they are not all placed together, then my formula returns the first complete number it comes to. For example, if the text were ab123cd45efg678hijk, then my formula would return 123... the first complete number in the string. For the example you posted, the 0 is the first complete number (it is followed by a dash, a non-digit), so it returns that value.
    Last edited by Rick Rothstein; 03-06-2012 at 10:34 PM.

Similar Threads

  1. Replies: 2
    Last Post: 03-21-2013, 08:51 PM
  2. Extracting Numeric Values From Alphanumeric Text
    By Safal Shrestha in forum Excel Help
    Replies: 3
    Last Post: 03-21-2013, 12:04 PM
  3. Extract numbers from alphanumeric values
    By tushar.tarafdar in forum Excel Help
    Replies: 3
    Last Post: 09-20-2012, 10:16 PM
  4. Count Alpha In AlphaNumeric Text
    By S M C in forum Excel and VBA Tips and Tricks
    Replies: 1
    Last Post: 07-19-2011, 02:32 AM
  5. Remove Zero / Zeroes From Alphanumeric Text
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 04-04-2011, 01:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •