+ Reply to Thread
Results 1 to 10 of 10

Pasting multiple Lines of text into one cell

  1. #1
    Registered User
    Join Date
    07-24-2014
    Location
    Newcastle, Australia
    MS-Off Ver
    2007
    Posts
    6

    Unhappy Pasting multiple Lines of text into one cell

    I am trying to cut and paste from a PDF document into excel and a grab of text when
    pasted sits in three boxes instead of one. How can I manage this? Thank you.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,561

    Re: Pasting multiple Lines of text into one cell

    Instead of just selecting the cell and pasting the text, click in the formula box and paste the text there.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: Pasting multiple Lines of text into one cell

    have you tried paste special as either text or csv?
    or put your cursor in the formula box and paste then?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    07-24-2014
    Location
    Newcastle, Australia
    MS-Off Ver
    2007
    Posts
    6

    Re: Pasting multiple Lines of text into one cell

    Thank you for your reply. Have done that and works but even after wrap text there are still gaps at the ends of the lines. They finish too short and send the text to the next line.
    What is the trick to avoid that?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,561

    Re: Pasting multiple Lines of text into one cell

    I think we'd need to see examples of the pdf file and the workbook after you've pasted the data.

    Basically, the data you are copying has New Line and or Carriage Return characters in it. When you paste it directly into a cell, Excel uses those characters to spread the data over several cells. When you paste it into the Formula box, those characters do what they're meant to, giving you data split across lines within the cell. The fact that the data has the New Line characters in it should prompt Excel to turn on Wrap Text. The effect that you get depends how wide the column is.

    The New Line and Carriage Return characters hark back to the days of dot matrix printers and line printers which, in turn, emulates a type-writer. Carriage Return takes the print head back to the start of the current line; New Line takes you to the next line.


    Regards, TMS

  6. #6
    Registered User
    Join Date
    07-24-2014
    Location
    Newcastle, Australia
    MS-Off Ver
    2007
    Posts
    6

    Re: Pasting multiple Lines of text into one cell

    Thanks again TMS. Very interesting about the characters in the data. Thought something like that might be the case. Have tried widening the column and yes that does get rid of it. So will keep columns narrower for entry purposes at the moment but can widen if I need to. Not a big issue but all good learning about Excel.

  7. #7
    Registered User
    Join Date
    07-24-2014
    Location
    Newcastle, Australia
    MS-Off Ver
    2007
    Posts
    6

    Re: Pasting multiple Lines of text into one cell

    Just giving you a bit more background in case you know any better ways to do it - I am pasting whole paragraphs into Excel from the PDF document - have lots of columns - 6,5 and 10 in Sheets 1, 2 and 3 - so the columms get long and cant see all the text - but can of course shift around the size of the boxes to see it and also when i want to print it off adjust the size boxes and just fit enough in the print screen to see appropriately and exepct there will be a big number of printed pages. Is that the way to go?

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,561

    Re: Pasting multiple Lines of text into one cell

    If you want/need the paragraphs to be narrower, you can add your own new line(s) at a suitable point(s) by pressing Alt-Enter.

    Other than that, you seem to have summarised the situation well.

    Regards, TMS



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  9. #9
    Registered User
    Join Date
    07-24-2014
    Location
    Newcastle, Australia
    MS-Off Ver
    2007
    Posts
    6

    Re: Pasting multiple Lines of text into one cell

    Just giving you a bit more background in case you know any better ways to do it - I am pasting whole paragraphs into Excel from the PDF document - have lots of columns - 6,5 and 10 in Sheets 1, 2 and 3 - so the columms get long and cant see all the text - but can of course shift around the size of the boxes to see it and also when i want to print it off adjust the size boxes and just fit enough in the print screen to see appropriately and exepct there will be a big number of printed pages. Is that the way to go? Thanks NonieH

  10. #10
    Registered User
    Join Date
    07-24-2014
    Location
    Newcastle, Australia
    MS-Off Ver
    2007
    Posts
    6

    Re: Pasting multiple Lines of text into one cell

    Apologies for the double post - looked like it was stuck and did not go through. Thanks for the info re how to mark if the problem is solved. Sorry for not clicking on the star Add Reputation - I have tried and it goes blue for a little while and then just back to black.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Split Wrapped Text (Multiple Lines) in A Cell to Multiple Columns
    By csmiin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2012, 09:15 PM
  2. Pasting multiple lines of text into one cell
    By hoopz in forum Excel General
    Replies: 4
    Last Post: 07-11-2012, 08:28 PM
  3. Pasting data between two lines of text.
    By rishi01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2010, 05:16 AM
  4. [SOLVED] Multiple lines of text in a cell
    By tk in forum Excel General
    Replies: 1
    Last Post: 05-26-2006, 11:20 AM
  5. Replies: 10
    Last Post: 09-09-2005, 06:05 PM

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