+ Reply to Thread
Results 1 to 6 of 6

Isolating number within text

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel:mac2008 version 12.3.6
    Posts
    3

    Isolating number within text

    Hi Guys,

    I'm fairly new to excel and having some difficulties. I have a series of data which is formatted with numbers in between text e.g. rs710521(G;G), rs5275(C;T), rs12376089(A;A) etc. What I would like to do is isolate the number from the text. Is there a function I can employ to do this en masse?

    Thanks in advance for any tips

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Isolating number within text

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Isolating number within text

    With your text in A1, try this array formula
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Quang PT

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Isolating number within text

    assuming that your data starts from a1 cell then
    b1 =MID(A1,MATCH(TRUE,ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),0),SUM(--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))))

    Hit Ctrl+hift+Enter after pasting the formula
    Appreciate the help? CLICK *

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Isolating number within text

    @AZ-XL,
    Your nice formular works for contiguous numbers as sample from OP.

    My formula works in generic, including non contiguous numbers like this:
    abc12/3xyz

  6. #6
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Isolating number within text

    Quote Originally Posted by bebo021999 View Post
    @AZ-XL,
    Your nice formular works for contiguous numbers as sample from OP.

    My formula works in generic, including non contiguous numbers like this:
    abc12/3xyz
    Hi Bebo.
    Yes you are right. Seeing wanchope's example I suggested such solution. There is no doubt your formula is much useful.
    Thanx

+ 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] Isolating text that occurs multiple times in a cell
    By williewoo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-15-2014, 08:02 PM
  2. Identify Text within a cell and isolating values
    By krindobex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2012, 11:08 AM
  3. Replies: 2
    Last Post: 04-26-2012, 05:35 AM
  4. Replies: 1
    Last Post: 04-28-2010, 12:10 PM
  5. isolating specified characters
    By Rambergs in forum Excel General
    Replies: 3
    Last Post: 05-19-2008, 09:28 AM

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