+ Reply to Thread
Results 1 to 16 of 16

how to take only numbers from text?

  1. #1
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    how to take only numbers from text?

    hello my helpful buddies,

    i want take only numbers from the sentence there.

    e.g.

    kazanan numaralar , 5 , 7 , 14 , 22 , 46 , 48 olarak belirlendi. ( from this sentence, i wanna take out only numbers as " 5 , 7 , 14 , 22 , 46 , 48 "

    how i can do this?
    pls look to example file. http://www.dosya.tc/server24/VT0ABq/...bers.xlsx.html
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: how to take only numbers from text?

    are these numbers in a sequence or may be at a different positions in the text. like ABACCC 25,25,012, asdasdasd or AB, 25,01 AC 256, CC 25,25,012, asdas20, 23dasd
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: how to take only numbers from text?

    for your given example and assuming numbers are one after another then below should work

    copy and paste below in B1 then hold control and shift then hit enter and release all three keys to make it array formula
    =MID(A1,MATCH(TRUE,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0),0),(MAX(ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0)*ROW(INDIRECT("1:"&LEN(A1))))+1)-MATCH(TRUE,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0),0))
    Attached Files Attached Files

  4. #4
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    Re: how to take only numbers from text?

    my friend, thanks for reply
    but it doesnt look useful

    dont u have better alternative guys?

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: how to take only numbers from text?

    Have you entered the formula with control shift and Enter. Or update your book where it seems to be not useful more over you haven't replied to post 2 and Have you checked the book updated in post 3

    Update your actual data!

  6. #6
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    Re: how to take only numbers from text?

    Quote Originally Posted by hemesh View Post
    are these numbers in a sequence or may be at a different positions in the text. like ABACCC 25,25,012, asdasdasd or AB, 25,01 AC 256, CC 25,25,012, asdas20, 23dasd
    all the time numbers in same positions my friend.
    not different positions.
    Last edited by aaaaa34; 02-24-2014 at 08:39 AM.

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: how to take only numbers from text?

    Quote Originally Posted by hemesh View Post
    for your given example and assuming numbers are one after another then below should work

    copy and paste below in B1 then hold control and shift then hit enter and release all three keys to make it array formula
    =MID(A1,MATCH(TRUE,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0),0),(MAX(ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0)*ROW(INDIRECT("1:"&LEN(A1))))+1)-MATCH(TRUE,ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0),0))
    Check attachment in post 3

  8. #8
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    Re: how to take only numbers from text?

    no its not useful enough
    i m sure u can find much better formula

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: how to take only numbers from text?

    Quote Originally Posted by aaaaa34 View Post
    no its not useful enough
    i m sure u can find much better formula
    what is the meaning of useful then?

  10. #10
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    Re: how to take only numbers from text?

    then my friend,
    pls write the formula once more for the new attached file please.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: how to take only numbers from text?

    That's What i asked you in post 2 as You can see 2014 ,20 and 902 are the numbers. What is the specific point you want your numbers to start I can see may be a comma or any specific sub text in text

  12. #12
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: how to take only numbers from text?

    try below in B1 Array entered
    =MID(A1,FIND(",",A1)+2,(MAX(ISNUMBER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0)*ROW(INDIRECT("1:"&LEN(A1)))))-FIND(",",A1))

    in your text i could see that number you are expecting is after comma and comma comes only before number series to be taken and there is no numbers afterwards.

    I still suggest you to upload a workbook with atleast 10-15 rows of data to work with.
    Attached Files Attached Files
    Last edited by hemesh; 02-24-2014 at 10:01 AM.

  13. #13
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    Re: how to take only numbers from text?

    yesssssssssss
    super HEMESH!!!
    thanks a lot MY FRIEND!!!
    my all problem is solved totally this time
    THANKS U SO MUCH,
    धन्यवाद!!!

  14. #14
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: how to take only numbers from text?

    Thanks for the feedback !

  15. #15
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Office365
    Posts
    388

    Re: how to take only numbers from text?

    how i can relocate the numbers separated with commas into cells along the same row?
    pls have a look to the file.
    Attached Files Attached Files

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: how to take only numbers from text?

    aaaaa34 I know that you started this thread - almost 5 years ago, but unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member (or a different question in your own thread) -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Issue Having Formula Recognizing Numbers Saved As Text As Numbers
    By livifivil in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2013, 01:34 PM
  2. [SOLVED] [SOLVED] Macro/Wildcard to remove only numbers excluding text with numbers
    By indianhp in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2013, 08:16 AM
  3. [SOLVED] Convert all numbers stored as text or custom formatted to numbers &no decimals - 40 sheets
    By synses in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 01:46 AM
  4. [SOLVED] Vlookup formula - return only numbers for cells containing text and numbers
    By Andrew E Smith in forum Excel General
    Replies: 11
    Last Post: 07-03-2012, 06:07 AM
  5. Replies: 9
    Last Post: 03-26-2012, 02:16 PM

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