+ Reply to Thread
Results 1 to 3 of 3

Extract numbers from string

  1. #1
    Registered User
    Join Date
    02-24-2007
    Posts
    84

    Extract numbers from string

    My problem is probably very simple:

    I have column A with entries such as 101011R1R

    In column B, I would like to get just the numbers, eg 1010111

    Any ideas?


    Thanks in advance,
    Gavin
    Last edited by gavster; 11-18-2010 at 12:29 PM.

  2. #2
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Extract numbers from string

    If the letters are always Rs:
    =SUBSTITUTE(A1,"R","")

    Otherwise
    =LEFT(A1,6)&MID(A1,8,1)
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  3. #3
    Registered User
    Join Date
    02-24-2007
    Posts
    84

    Re: Extract numbers from string

    Excellent.

    Will have to determine which is most suitable, probably the second.

    Thanks a lot.

    Gavin.

+ 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