+ Reply to Thread
Results 1 to 6 of 6

Split contents of a cell

  1. #1
    Registered User
    Join Date
    08-23-2005
    Posts
    53

    Split contents of a cell

    Hi, I have a web query that pulls football league fixtures from a website, the two teams appear in one cell after the extract, is there a way of spliting the two team to individual cell.

    This is what its looks like when extracted.

    Middlesbrough - Bolton
    Charlton - Newcastle
    Man Utd - Birmingham

    Rik

  2. #2
    Bob Phillips
    Guest

    Re: Split contents of a cell

    Use Data>Text To Columns with space and - as delimiters.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Rikuk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi, I have a web query that pulls football league fixtures from a
    > website, the two teams appear in one cell after the extract, is there a
    > way of spliting the two team to individual cell.
    >
    > This is what its looks like when extracted.
    >
    > Middlesbrough - Bolton
    > Charlton - Newcastle
    > Man Utd - Birmingham
    >
    > Rik
    >
    >
    > --
    > Rikuk
    > ------------------------------------------------------------------------
    > Rikuk's Profile:

    http://www.excelforum.com/member.php...o&userid=26559
    > View this thread: http://www.excelforum.com/showthread...hreadid=526321
    >




  3. #3
    Registered User
    Join Date
    08-23-2005
    Posts
    53
    Thank you just what I needed.

    Rik

  4. #4
    Registered User
    Join Date
    08-23-2005
    Posts
    53
    I've manged to split the two teams into seperate cells, my VLookup fails now because there a space at the end of each team name. Can this be removed or can VLookup do a near match instead of exact match?

    Middlesbrough - Bolton
    Charlton - Newcastle
    Man Utd - Birmingham

    Rik

  5. #5
    Bob Phillips
    Guest

    Re: Split contents of a cell

    Try trimming the lookup value, like this

    =VLOOKUP(TRIM(A2),I2:K45,2,FALSE)

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Rikuk" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I've manged to split the two teams into seperate cells, my VLookup fails
    > now because there a space at the end of each team name. Can this be
    > removed or can VLookup do a near match instead of exact match?
    >
    > Middlesbrough - Bolton
    > Charlton - Newcastle
    > Man Utd - Birmingham
    >
    > Rik
    >
    >
    >
    > --
    > Rikuk
    > ------------------------------------------------------------------------
    > Rikuk's Profile:

    http://www.excelforum.com/member.php...o&userid=26559
    > View this thread: http://www.excelforum.com/showthread...hreadid=526321
    >




  6. #6
    Registered User
    Join Date
    08-23-2005
    Posts
    53
    Thank you fully working now

    Rik

+ 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