+ Reply to Thread
Results 1 to 4 of 4

extract numbers out of strings.

  1. #1
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    extract numbers out of strings.

    In column D, I have a column of strings like below:

    3 M1
    4 S2
    5 S8
    6 M0
    7 M10
    etc

    The M or S will always be 1st & the number will be no more the 10.

    I need the simplest formula possible to extract the number out in column E of the same row, for example:

    3 1
    4 2
    5 8
    6 0
    7 10
    etc

    Thanks for all your help. mikeburg

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,468
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Simplest possible formula to extract numbers out of strings.

    If the cell will only contain a letter followed by one or two digits...
    Try this:

    D3: M5

    this formula returns the numeric part...as a number:
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    Both works great! Thanks for the help. mikeburg

+ 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