+ Reply to Thread
Results 1 to 5 of 5

Splitting text from cells into table in new worksheet

  1. #1
    Registered User
    Join Date
    05-16-2009
    Location
    Cornwall, UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Splitting text from cells into table in new worksheet

    Hi,

    I am importing some football game data from a website as in the attached WorkSheet "ImportData" with the aim to analyse information of the goalscorers.

    From the imported data I need to be able to spilt different text elements from cells in columns C and F into a different worksheet together with the related MatchID. Each goal being a separate row of data, as shown in the attached worksheet "Goalscorer". I now have a further 300 matches worth of data which needs to be split in the same way.

    Although the "Text-to-Columns" feature in Excel will split the data, I don't believe it does so into the format I require.

    With my realtivley poor VBA skills I am guessing the Right, Left, Mid and Len functions would be utilised, but I'm not really sure where to make a start.

    Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Splitting text from cells into table in new worksheet

    Use ; as delimiter
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    05-16-2009
    Location
    Cornwall, UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Splitting text from cells into table in new worksheet

    Hi Special-K,

    Thanks for the reply.

    In what context do you mean? The Text-to-Columns function?

    If so, although this splits the cell, it won't do so in the final format I need, so I was querying whether it is possible to use VBA code to match the format in the 'Goalscorer' worksheet.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Splitting text from cells into table in new worksheet

    Perhaps a sub routine along the lines of:

    Please Login or Register  to view this content.

    I have no doubt this could be streamlined but should be a start.

  5. #5
    Registered User
    Join Date
    05-16-2009
    Location
    Cornwall, UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Splitting text from cells into table in new worksheet

    DonkeyOte,

    Many thanks, this works great. More than just a start!

+ 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