+ Reply to Thread
Results 1 to 6 of 6

Extract Several Numbers From Text String

  1. #1
    Registered User
    Join Date
    06-21-2016
    Location
    Anderson, SC
    MS-Off Ver
    2016
    Posts
    4

    Question Extract Several Numbers From Text String

    Hi.

    I'm a bit rusty with parsing out text and hope that someone has a forumla for me to use. Here's a few examples:

    M RTG 1525; MY HGR-P-T 100042; RPT 100721 (this is in one cell) I need each number in a different cell
    M RTG 1525; MY ROV/HPP/HGG 100042; RPT 100721 (this is in one cell) I need each number in a different cell
    R HRX 36180; 174021 (this is in one cell) I need each number in a different cell
    M RTG 1526 (Testing data) Copied to my version ROV/HPP/HGG 100248 and RPT 101505 (this is in one cell) I need each number in a different cell

    There is no consistency to the madness.

    THANKS!

  2. #2
    Forum Contributor S O's Avatar
    Join Date
    06-25-2015
    Location
    England
    MS-Off Ver
    Office 2010 + 2013 + 2016
    Posts
    103

    Re: Extract Several Numbers From Text String

    What are you classing as a 'number' here? In the top row, do you just want '1525', '100042' and '100721'?

  3. #3
    Registered User
    Join Date
    06-21-2016
    Location
    Anderson, SC
    MS-Off Ver
    2016
    Posts
    4

    Re: Extract Several Numbers From Text String

    I need anything that looks like a whole number in a different cell. I should've gave examples of how it should be:

    Column A
    M RTG 1525; MY HGR-P-T 100042; RPT 100721


    Column B 1525

    Column C 100042

    Column D 100721

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Several Numbers From Text String

    Enter formula in B1 and pull it to the right until you see blanks and then down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D
    1 M RTG 1525; MY HGR-P-T 100042; RPT 100721 1525 100042 100721
    2 M RTG 1525; MY ROV/HPP/HGG 100042; RPT 100721 1525 100042 100721
    3 R HRX 36180; 174021 36180 174021
    4 M RTG 1526 1526
    5 ROV/HPP/HGG 100248 100248
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    06-21-2016
    Location
    Anderson, SC
    MS-Off Ver
    2016
    Posts
    4

    Re: Extract Several Numbers From Text String

    Fantastic:0

    How about this example

    M RTG 1526 (Testing data) Copied to my version ROV/HPP/HGG 100248 and RPT 101505

    same need as the others

  6. #6
    Registered User
    Join Date
    06-21-2016
    Location
    Anderson, SC
    MS-Off Ver
    2016
    Posts
    4

    Re: Extract Several Numbers From Text String

    Can you add two Substitute functions like and If statement?

+ 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] Extract numbers from text string
    By reynoldslarry in forum Excel General
    Replies: 6
    Last Post: 10-25-2014, 03:22 PM
  2. [SOLVED] Extract numbers from a string of alphanumeric text
    By Joshdm0716 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-09-2014, 08:28 PM
  3. Formula to extract numbers from text string
    By ExcelFailure in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2014, 08:06 AM
  4. extract and sum numbers from a text string
    By Shazwb in forum Excel General
    Replies: 5
    Last Post: 08-28-2011, 09:24 PM
  5. Extract multiple numbers from a text string???
    By abz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-08-2010, 09:26 PM
  6. Extract numbers from text string
    By mkvassh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2009, 08:53 AM
  7. [SOLVED] EXTRACT NUMBERS FROM TEXT STRING
    By fiber_doc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2005, 02:45 PM

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