+ Reply to Thread
Results 1 to 3 of 3

Extract Numbers from a cell

  1. #1
    Registered User
    Join Date
    12-22-2019
    Location
    Banglore
    MS-Off Ver
    1902
    Posts
    1

    Extract Numbers from a cell

    Hi Team,

    I have a data like below


    Column
    LS NO : 789 P 1
    LS 46 SANDESARAPATI
    SANDESAR PATY SU.242/2
    LSNO-581 AG BOREWELL
    L S NO:-189-9727751605
    L.S. NO-1249/18P1,KHANDOSAN
    23 Long Street

    I need to extract number values as below

    Required
    789P1
    46
    242/2
    581
    189 (next is mobile number it should not come)
    1249/18P1
    BLANK

    so far I have tried this equation and I am failing to achieve the target

    =IF(SUMPRODUCT(--ISNUMBER(SEARCH({"SU","LS NO","L S NO","L.S","SURVEYNO","LSNO:","LS","L S No","LSNo"},C5)))>0,SUMPRODUCT(MID(0&C5, LARGE(INDEX(ISNUMBER(--MID(C5, ROW(INDIRECT("1:"&LEN(C5))), 1)) * ROW(INDIRECT("1:"&LEN(C5))), 0), ROW(INDIRECT("1:"&LEN(C5))))+1, 1) * 10^ROW(INDIRECT("1:"&LEN(C5)))/10),"")

    using the above it is mixing all the numbers together, is there possibility to keep two separate number series ?

    Hope to get a response soon.
    Thank you in advance!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract Numbers from a cell

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet, complete with expected answers.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    03-17-2010
    Location
    karachi
    MS-Off Ver
    Excel 2003
    Posts
    114

    Re: Extract Numbers from a cell

    Try this with ctl+shift+enter
    =LEFT(MID(A1,MATCH(TRUE,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&(LEN(A1)))),1)+0),0),MATCH(2,1/--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),1)),MATCH(2,1/--ISNUMBER(--MID(MID(A1,MATCH(TRUE,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&(LEN(A1)))),1)+0),0),MATCH(2,1/--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),1)),ROW(INDIRECT("1:"&LEN(MID(A1,MATCH(TRUE,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&(LEN(A1)))),1)+0),0),MATCH(2,1/--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),1))))),1)),1))

+ 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 extract Numbers from Cell
    By bachukij in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-02-2017, 10:09 AM
  2. [SOLVED] How to Display Numbers Only OR How To Extract Numbers In A Cell
    By PaddyP in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-17-2016, 12:32 PM
  3. [SOLVED] Extract numbers from cell
    By warston in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2015, 03:54 PM
  4. [SOLVED] Extract numbers from cell
    By warston in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2015, 03:43 PM
  5. Extract numbers from cell with Text and Numbers
    By wiredwrx in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-18-2006, 06:00 PM
  6. [SOLVED] How do I extract numbers from a cell with both text and numbers?
    By SHANNON in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2005, 10:35 PM
  7. Replies: 1
    Last Post: 11-14-2005, 03:10 AM

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