+ Reply to Thread
Results 1 to 6 of 6

Trying to seperate a lot of vertical text from a single cell.

  1. #1
    Registered User
    Join Date
    08-01-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Trying to seperate a lot of vertical text from a single cell.

    Hi
    I have been sent an export from Outlook in a .csv file. The Body of the Email is all contained in one cell for each row (each email detail) and is in the following vertical format within the cell:

    Column Header
    blank row
    Data
    blank row
    Column Header
    blank row
    Data
    blank row

    ....and so on. I've tried to do something using Transpose and Text to Columns, but I've not been able to successfully seperate out the data into a useful format in Excel. The data are responses to a website and contain Account/Contact information which I hope to be able to import into a CRM system as new Leads.
    Can anyone suggest a way of extracting this information, so that I can get each row into a format that gives me the column header with the related data below, as you'd normally expect to see in Excel?

    Thank you!

    Wendy

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,603

    Re: Trying to seperate a lot of vertical text from a single cell.

    Please post a sample sheet

  3. #3
    Registered User
    Join Date
    08-01-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Trying to seperate a lot of vertical text from a single cell.

    Hi
    I hope that you are able to see the attached file.........ABA.xlsx
    Wendy
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Trying to seperate a lot of vertical text from a single cell.

    see cells T2:U2 in attachment.
    Attached Files Attached Files
    Last edited by WHER; 01-30-2013 at 08:14 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Trying to seperate a lot of vertical text from a single cell.

    I used a very similar approach...

    =SUBSTITUTE(SUBSTITUTE(B2,CHAR(10),""),CHAR(13),"|")
    because Im not sure which column which bit of info goes into, you can either use text-to-columns, as suggested, or, if you make the column headings identical to what will be in the body of the text, you can use a combination of mid(search(len())) to extract the vairious bits and pieces, based on the headings
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    08-01-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Trying to seperate a lot of vertical text from a single cell.

    Fantastic - thank you!

+ 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