+ Reply to Thread
Results 1 to 4 of 4

Extract Number from text

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Post Extract Number from text

    hello friends,
    i want to extract numberfrom text.
    for example
    if A1= Rect 0.60x0.38
    i want the result as
    B1=0.60
    C1=0.38

    plz help me

    Thanks

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Extract Number from text

    If your data is as posted ( only 1 x between numbers no where else, only 1 space before the 1st number no where else)

    Try this,

    B1,

    =MID(A1,SEARCH(" ",A1),SEARCH("x",A1)-FIND(" ",A1))+0

    C1,

    =MID(A1,SEARCH("x",A1)+1,250)+0

    If not,

    B1,

    =LOOKUP(9E300,--RIGHT(SUBSTITUTE(TRIM(A1)," ",REPT(" ",50)),{1,2,3,4,5,6,7,8,9}))

    C1,

    =LOOKUP(9E300,--LEFT(TRIM(RIGHT(SUBSTITUTE(TRIM(A1)," ",REPT(" ",50)),50)),{1,2,3,4,5,6,7,8,9}))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    12-16-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Extract Number from text

    Thank u sooooo much

  4. #4
    Registered User
    Join Date
    12-16-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Extract Number from text using VBA

    how to do the same problem in VBA

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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