+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20

Thread: Extract number from text field

  1. #16
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,176

    Re: Extract number from text field

    I would gladly help you for free but your issue is not so simple, so have a little patience
    "Relax. What is mind? No matter. What is matter? Never mind!"

  2. #17
    Registered User
    Join Date
    06-16-2011
    Location
    hyderabad
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Extract number from text field

    waiting bro.............

    it will solve my big problem and save time........
    Last edited by romperstomper; 06-17-2011 at 07:54 AM.

  3. #18
    Registered User
    Join Date
    06-16-2011
    Location
    hyderabad
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Extract number from text field

    Quote Originally Posted by sailesh9630 View Post
    waiting bro.............

    it will solve my big problem and save time........
    thank you for your help

  4. #19
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,767

    Re: Extract number from text field

    try ,adapted from here http://www.teachexcel.com/excel-help/ev.php?i=124211
    =MID($A1&"x000000",MATCH(TRUE,INDEX(ISNUMBER(MID(SUBSTITUTE($A1," ","^")&"x000000",ROW($A$1:INDEX($A:$A,LEN($A1)+1)),6)+0),0),0),6)+0
    then with a few helper columns
    see attached
    hm i done this in xls might be tidier with iferror
    Attached Files Attached Files
    Last edited by martindwilson; 06-17-2011 at 09:28 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #20
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,052

    Re: Extract number from text field

    This version will return "Too long" where you have 7 digit numbers in rows 2 and 14

    =IF(ISNUMBER(LOOKUP(10^7,MID(SUBSTITUTE(SUBSTITUTE(C2,".","x")," ","x"),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(SUBSTITUTE(C2,".","x")," ","x"))-6)),7)+0)),"Too Long",LOOKUP(10^6,MID(SUBSTITUTE(SUBSTITUTE(C2,".","x")," ","x"),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(SUBSTITUTE(C2,".","x")," ","x"))-5)),6)+0))
    Audere est facere

+ 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.2.0