+ Reply to Thread
Results 1 to 4 of 4

How to combine text in multiple cells? (problems with importing from html table)

  1. #1
    Registered User
    Join Date
    01-17-2007
    Posts
    3

    How to combine text in multiple cells? (problems with importing from html table)

    Hi, I am doing some qualitative analysis of some text using excel. My data right now is in an html table, and when I try to copy the table it sometimes puts the text that was intially in one cell into multiple cells in Excel if there were breaks in the text within the cell of the table. So, if a cell contains 5 lines of text with line breaks between them <br>, when I bring it into excel it puts the content into 5 different cells (in the same column). Does anyone know if there is a way: 1. to prevent this from happening when I paste, or 2. to combine all 5 of the cells into one cell with multiple lines? Thanks for any help!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    After you copy the HTML file and go back to Excel, try right-clicking and selecting Paste Special. You can try pasting as Text or Unicode Text....that sometimes works, with little tweaking afterwards.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-17-2007
    Posts
    3
    I'd tried that and it was still putting the text in multiple cells in Excel...any other ideas?

  4. #4
    Registered User
    Join Date
    01-26-2007
    Posts
    2

    Smile

    Quote Originally Posted by kayak_pirate81
    Hi, I am doing some qualitative analysis of some text using excel. My data right now is in an html table, and when I try to copy the table it sometimes puts the text that was intially in one cell into multiple cells in Excel if there were breaks in the text within the cell of the table. So, if a cell contains 5 lines of text with line breaks between them <br>, when I bring it into excel it puts the content into 5 different cells (in the same column). Does anyone know if there is a way: 1. to prevent this from happening when I paste, or 2. to combine all 5 of the cells into one cell with multiple lines? Thanks for any help!
    This method workes well to combine/separate formatted information from different/one cell. I hope you have Word

    Mark the columes which lines you want to combine. Copy and paste into Word. Highlight table. Select Table --> convert --> table to text. Select divider (e.g. space if you want to use it as real text). Highlight text, copy and paste back into excel.

    The same method works the other way around, e.g. to divide address information, separated by a unique separator (comma, space) into different columns.

    To break text in a cell, select cell, right click, select cell format, select 2nd tab from left ("alignment" or something) and put a check where it says "line break". Now if you change the cell dimensions, the text will try to snuggle in. However in Excel there is no line break within a cell like when you hit "Enter" in Word.

    Hope this helps
    Last edited by axcel; 01-26-2007 at 10:33 PM.

+ 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