+ Reply to Thread
Results 1 to 8 of 8

Looking for a way to extract multiple numbers from text

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    13

    Question Looking for a way to extract multiple numbers from text

    Greetings everyone,
    my knowledge of macros is just enough to be dangerous, I know there has to be an easy way to do this. I have a spreadsheet that has text which includes retail SKU numbers. There is no pattern to the text and varies greatly. It could have only one number or could have 10. Below is an example of one entry;

    on hand for new stock sku# , 959801 , 939473, also 939506, 717845, 717713, 817472, non onhand 939539, 939902, 813858

    What I need is a way to extract these SKU numbers out and drop in the cells to the right as individual numbers. So if the above information is in cell A1, then what I'm looking for is A2 = 959801 A3 = 939473 A4 = 939506 A5 = 717845 and so on.

    I am using Excel 2010 on Win 7 platform.
    Any help is appreciated.

    Thanks and have a great day!!!!
    Ken

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Looking for a way to extract multiple numbers from text

    All of your example contain numbers only. Are there any "non-number" examples of the data?
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    08-28-2012
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Looking for a way to extract multiple numbers from text

    If I understand your question right, the information I need to extract will be purely numeric.

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

    Re: Looking for a way to extract multiple numbers from text

    in b1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    in c1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    drag across to right as many cols as you are likely to need this assumes the sku is 6 digits also no sku is repeated in the string
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    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. #5
    Registered User
    Join Date
    08-28-2012
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Looking for a way to extract multiple numbers from text

    Thanks Martin,
    Thanks for the formulas!! I appreciate it, I just now had a chance to try this but found a scenario I wasn't aware of. I'm finding some of the SKU data is loaded in a format with a "-" dash. So 959801 is also loaded in some places as 959-801. Any suggestions? Thanks

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Looking for a way to extract multiple numbers from text

    b1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    c1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-28-2012
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Looking for a way to extract multiple numbers from text

    Thanks Martin,
    That's PERFECT !!! You are awesome. It works like a charm, I really appreciate your help.
    Have a great day and thank you

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Looking for a way to extract multiple numbers from text

    If you are satisfied with the solution(s) provided, please remember to mark your thread as Solved.

    New quick method:
    Select Thread Tools (above first post on page) -> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word "Title" you will see a dropdown with the words "No prefix".
    Change to "Solved"
    Click Save

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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.6.0 RC 1