If I copy text with a line break in it, like this:
1st line
2nd line
and then paste in into a Google Sheets cell, then it pastes '2nd line' into the cell below.
What are the ways to avoid this?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communitySelect the cell you wish to paste into, then press F2 and it will allow you to paste the text in without separating the line breaks into their own cells.
Based on http://productforums.google.com/forum/#!category-topic/docs/formatting/-uEh3jguVu0 you can " copy the info single cell by single cell and paste the information in edit mode of the receiving cell; i,e. double-click the cell first before you paste the single cell contents". Though this is hardly 'easy' so there may be a better answer out there...
You can quote the multiple-line contents with "
now.
The quotation makes the pasting of a list of multiple-line contents so easy.
An alternative to double clicking / pressing F2 on a cell is to paste the text into the formula window (next to "fx" above the sheet).
Note that neither this nor other methods described will preserve formatting (font color, font face, etc), which may or may not be a plus.
This drove me crazy until I accidentally got my list to paste properly.
You have to double or triple click in the target cell so that the cursor appears. Then you can paste a list with line breaks into a cell in a Google spreadsheet.
I realize this was asked a year ago but my first search brought me to this post so I thought I'd share.
Update as of January 2016: Right click and Paste Special > Paste Values Only
.
Bam!
I have managed to "solve" this. Pasting line by line is not the solution of course.
The problem was the browser in my case, my friend who was using Mozilla had this problem. I was using Google Chrome and it worked fine for me. After he tried on Google Chrome, it worked for him too.
I faced this same problem today, and I used the contextual option of 'Paste Format' and it worked perfectly for me!