Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 01-17-2007, 11:55 AM
kayak_pirate81 kayak_pirate81 is offline
Registered User
 
Join Date: 17 Jan 2007
Posts: 3
kayak_pirate81 is becoming part of the community
How to combine text in multiple cells? (problems with importing from html table)

Please Register to Remove these Ads

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!
Reply With Quote
  #2  
Old 01-17-2007, 12:24 PM
NBVC's Avatar
NBVC NBVC is offline
Forum Guru
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
MS Office Version:2003 & 2007
Posts: 18,412
NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future
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. Pick One!

Please read the Forum Rules

If you are happy with the results, please add to my reputation by clicking the icon next to the Post # in the bar above my avatar (picture) in this post.

Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Reply With Quote
  #3  
Old 01-17-2007, 12:29 PM
kayak_pirate81 kayak_pirate81 is offline
Registered User
 
Join Date: 17 Jan 2007
Posts: 3
kayak_pirate81 is becoming part of the community
I'd tried that and it was still putting the text in multiple cells in Excel...any other ideas?
Reply With Quote
  #4  
Old 01-26-2007, 09:30 PM
axcel axcel is offline
Registered User
 
Join Date: 26 Jan 2007
Posts: 2
axcel is becoming part of the community
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 09:33 PM.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump