+ Reply to Thread
Results 1 to 3 of 3

Formula to Get the text

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Formula to Get the text

    Hi... i have a sheet with several cells in a collumn with a text formated as this sample:
    Back,TEST,"00:11:22","Soccer / Brazilian Soccer / Brazilian Paulista A1 / Fixtures 20 March / Oeste v Bragantino SP / Over/Under 3.5 Goals - Over/Under 3.5 Goals","Under 3.5 Goals","11.81","1.32","-11.81","106.31"
    Then i built up formulas that extract the text i want from this cell like, for example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The thing is i dont know how to extract the 11.81 value or 1.32 or 106.31 to individual cells.
    I attached a sample file with the formulas i already buit to get info like Brazilian Soccer, Brazilian Paulista A1, 20 March and Under 3.5 Goals but i cant get those 3 values.
    Please if someone can help i would be really appreciated.
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Formula to Get the text

    Hi

    I think that you will need a user definable function to do that.

    The split function will split your text using any character that you choose, in your case a comma.

    Please Login or Register  to view this content.
    I have built this into your spreadsheet.

    you can insert it anywhere format =SplitString( String or cell ref, position)
    Attached Files Attached Files
    Last edited by mehmetcik; 03-23-2013 at 10:15 AM.

  3. #3
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: Formula to Get the text

    @mehmetcik

    Thank you for your response. Never though do the split by vba code since i allways get the text i want using MID formula. The thing is, that the text i have in cell A1 is only the first one, because the original one has a random list in collumn A (A1, A2, A3...) of these cells and i wanto to retrive each data from each of these lines. And from what i checked the macro code only splits the A1 cell, and i need it to split any active cell on A that as this kind of text. Let me add the original one so you can undestand.
    Thank you
    Attached Files Attached Files

+ 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