+ Reply to Thread
Results 1 to 2 of 2

Extracting data into cells from string

  1. #1
    Registered User
    Join Date
    10-05-2009
    Location
    glasgow,scotland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Extracting data into cells from string

    I have a problem that I hope someone can help me with. I have a list of horses, ratings and the going (ground conditions) that rating was achieved on. The problem is that all this data is in one cell as it's from a 3rd party app that I have no access to.

    The cells consists of the following data for example -:

    HOBSON 104(gf) JILLY WHY 103(hy) SION HILL 101(gf)

    So you have the horse name - HOBSON, the rating 104 and the going in brackets (gf).

    I want to extract each piece of data into 3 columns. So you have for example...

    A2 - HOBSON
    B2 - 104
    C2 - gf
    A3 - JILLY WHY
    B3 - 103
    C3 - hy
    A4 - SION HILL
    B4 - 101
    C4 - gf

    The problem is that I can't use text to columns using space as a delimiter because the horse names can have spaces.

    Someone provided me with the following formula which works but it is really slow as I have 100+ rows like this...can anyone help, I'm desperate and have no clue with vb or scripting but am 'competent' in excel. Thanks in advance.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Extracting data into cells from string

    I don't know why you're macro would feel slow. I only tweaked it a little and it processed 300 rows of information in less than 2 seconds. My tweaked version:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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