Why do Excel line breaks not transfer into Notepad?












31














When copying a cell with line breaks in Excel and pasting it into Notepad, the text is pasted onto one line. Why is that?










share|improve this question







New contributor




Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
    – angelofdev
    Dec 18 at 22:28










  • Note that the clipboard can support multiple flavors of the same snippet (raw text up to lots of metadata about where it came from). It is up to the receiving program to determine which it likes best. Notepad is not very smart.
    – Thorbjørn Ravn Andersen
    Dec 19 at 15:32
















31














When copying a cell with line breaks in Excel and pasting it into Notepad, the text is pasted onto one line. Why is that?










share|improve this question







New contributor




Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
    – angelofdev
    Dec 18 at 22:28










  • Note that the clipboard can support multiple flavors of the same snippet (raw text up to lots of metadata about where it came from). It is up to the receiving program to determine which it likes best. Notepad is not very smart.
    – Thorbjørn Ravn Andersen
    Dec 19 at 15:32














31












31








31


2





When copying a cell with line breaks in Excel and pasting it into Notepad, the text is pasted onto one line. Why is that?










share|improve this question







New contributor




Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











When copying a cell with line breaks in Excel and pasting it into Notepad, the text is pasted onto one line. Why is that?







microsoft-excel notepad linebreaks






share|improve this question







New contributor




Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Dec 18 at 21:38









Kyle Dixon

15824




15824




New contributor




Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Kyle Dixon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2




    Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
    – angelofdev
    Dec 18 at 22:28










  • Note that the clipboard can support multiple flavors of the same snippet (raw text up to lots of metadata about where it came from). It is up to the receiving program to determine which it likes best. Notepad is not very smart.
    – Thorbjørn Ravn Andersen
    Dec 19 at 15:32














  • 2




    Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
    – angelofdev
    Dec 18 at 22:28










  • Note that the clipboard can support multiple flavors of the same snippet (raw text up to lots of metadata about where it came from). It is up to the receiving program to determine which it likes best. Notepad is not very smart.
    – Thorbjørn Ravn Andersen
    Dec 19 at 15:32








2




2




Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
– angelofdev
Dec 18 at 22:28




Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
– angelofdev
Dec 18 at 22:28












Note that the clipboard can support multiple flavors of the same snippet (raw text up to lots of metadata about where it came from). It is up to the receiving program to determine which it likes best. Notepad is not very smart.
– Thorbjørn Ravn Andersen
Dec 19 at 15:32




Note that the clipboard can support multiple flavors of the same snippet (raw text up to lots of metadata about where it came from). It is up to the receiving program to determine which it likes best. Notepad is not very smart.
– Thorbjørn Ravn Andersen
Dec 19 at 15:32










4 Answers
4






active

oldest

votes


















25














Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.






share|improve this answer



















  • 3




    That makes complete sense, thank you!
    – Kyle Dixon
    Dec 18 at 23:00






  • 6




    This answer is wrong. Try saving your notepad after pasting the text with line break. Then open file with wordpad instead. Just a bug in old versions of notepad. Your should mark the other answer as correct.
    – Zak
    Dec 19 at 23:34








  • 4




    @Keltari Actually no, @Zak is correct. For some reason when you add a line break in Excel (using Alt+Enter), only 0xA is entered, not the full 0xD 0xA, which means LF, instead of CR/LF. Excel interprets this and show the line break, while the plain notepad doesn't, because it expects CR/LF. It's a difference in formats being detected more than a bug, but still, that is the correct reason.
    – ChatterOne
    2 days ago








  • 4




    @Keltari There is nothing to argue. Use a binary editor and see what's written in the file.
    – ChatterOne
    2 days ago






  • 1




    @Keltari Honestly these upvotes are mostly the effect from being the accepted answer on a HNQ. You can see how many more people agree with the other answers.
    – kapex
    2 days ago



















44














This is true when you use Notepad, which is Microsoft's basic text editor that is already pre-installed in Windows.



However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transferred.



Excel:



Excel



Cell marked, then copy-paste into Notepad++:



Notepad++



Same content pasted into Notepad (the Windows default editor):



WindowsNotpad



Note that in both cases, quotation marks were added automatically!



The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:



Notepad++withcontrochars



As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.



Mass processing of such data



If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.



There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.



You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.






share|improve this answer























  • This is great thank you so much!
    – Kyle Dixon
    Dec 18 at 23:00






  • 12




    Notepad++ showing CRLF there is actually because it sees the LF and assumes it's supposed to be a full CRLF and converts it.
    – 3D1T0R
    Dec 19 at 2:08






  • 4




    @3D1T0R: it depends on the Notepad++ line ending setting. It's possible to "binary paste" to keep the original Excel formatting, which is indeed a LF only.
    – Thomas Weller
    Dec 19 at 11:15






  • 1




    This should be the accepted answer
    – ChatterOne
    2 days ago






  • 1




    Do note that Notepad under Windows 10 version 1809 has the option to use LF as a linebreak (instead of CR-LF). If you use that, there's no converting but linebreaks are still displayed properly.
    – Erik von Asmuth
    yesterday



















32














Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.



There are three different forms of line breaks in use in computing:




  • Unix and macOS 10.0+ line endings use a line-feed character (LF)

  • Macintosh (prior to macOS 10.0) line endings use a carriage-return character (CR)

  • Windows line endings use a combination of carriage-return and line-feed characters (CRLF)


This is a hold over from the way that type writers work.



Excel uses a combination of these line breaks to represent cells with multiple lines:




  • Cells are separated by the Tab character.

  • Rows are separated by the CRLF characters.

  • Multiline cells separate each line using just the LF character.


This becomes apparent when you save your workbook as a .txt file and open it with a text editor that supports showing these characters.



Excel



Notepad++



Notepad only processes CRLF as newlines and ignores LF or CR by themselves. They're still in the document, but aren't visible in any way.



Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.






share|improve this answer



















  • 3




    You should also mention that the LF is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
    – 3D1T0R
    Dec 19 at 1:58






  • 3




    Note that this is only how Excel exports workbooks to text files. For xlsx files, lines breaks within a string are actually represented by CRLF.
    – kapex
    Dec 19 at 15:39








  • 3




    Interestingly, it is entirely possible to construct a cell that "really" contains a CRLF - ="A"&CHAR(13)&CHAR(10)&"B". Line breaks produced by formulas are not visible in excel, but work fine if copied and then pasted via "paste values". A value pasted from manually typing "A<CRLF>B" in notepad and copying will also retain the CRLF.
    – Random832
    Dec 19 at 16:09






  • 3




    @3D1T0R is right. Try to copy a single Excel cell with text "anb" (where "n" represents a newline) into Notepad. You will see "ab" in Notepad (with the quotation marks). But if you put the caret in front of "a" and press the Right arrow key on your keyboard three times, you will find that there is an invisible zero-width character between "a" and "b"! Indeed, you can also use the Shift key to select it and copy it to the clipboard!
    – Andreas Rejbrand
    Dec 19 at 18:25








  • 2




    @AndreasRejbrand: I have used this technique a number of times to make text files with LF EOLs readable quickly. i.e. Find an LF character, select it, Ctrl+C, Ctrl+Home, Ctrl+F, Ctrl+V, Enter, Esc, Enter. Then repeatedly F3, Enter till end. [Edit: <kbd> doesn't work in comments?]
    – 3D1T0R
    Dec 19 at 19:21





















0














Excel uses LF to denote new lines within a cell. Notepad does not consider this to be a new-line as Windows in general uses CRLF for new-lines.



Notepad++ is more intelligent than the relatively simple Notepad and thus interprets LF as a new-line also.






share|improve this answer





















  • I don't use Notepad++, but out of curiosity: what happens if you have an Excel table consisting of at least two rows containing a multiline cell and copy-paste that into Notepad++?
    – Andreas Rejbrand
    Dec 19 at 18:27






  • 1




    @AndreasRejbrand The multiline cells will be wrapped in " and Notepad++ will normalize all of the line endings to match. See here. If you instead save as .txt and open in Notepad++, the multiline cells will have LF only. See here.
    – Worthwelle
    2 days ago













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385708%2fwhy-do-excel-line-breaks-not-transfer-into-notepad%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























4 Answers
4






active

oldest

votes








4 Answers
4






active

oldest

votes









active

oldest

votes






active

oldest

votes









25














Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.






share|improve this answer



















  • 3




    That makes complete sense, thank you!
    – Kyle Dixon
    Dec 18 at 23:00






  • 6




    This answer is wrong. Try saving your notepad after pasting the text with line break. Then open file with wordpad instead. Just a bug in old versions of notepad. Your should mark the other answer as correct.
    – Zak
    Dec 19 at 23:34








  • 4




    @Keltari Actually no, @Zak is correct. For some reason when you add a line break in Excel (using Alt+Enter), only 0xA is entered, not the full 0xD 0xA, which means LF, instead of CR/LF. Excel interprets this and show the line break, while the plain notepad doesn't, because it expects CR/LF. It's a difference in formats being detected more than a bug, but still, that is the correct reason.
    – ChatterOne
    2 days ago








  • 4




    @Keltari There is nothing to argue. Use a binary editor and see what's written in the file.
    – ChatterOne
    2 days ago






  • 1




    @Keltari Honestly these upvotes are mostly the effect from being the accepted answer on a HNQ. You can see how many more people agree with the other answers.
    – kapex
    2 days ago
















25














Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.






share|improve this answer



















  • 3




    That makes complete sense, thank you!
    – Kyle Dixon
    Dec 18 at 23:00






  • 6




    This answer is wrong. Try saving your notepad after pasting the text with line break. Then open file with wordpad instead. Just a bug in old versions of notepad. Your should mark the other answer as correct.
    – Zak
    Dec 19 at 23:34








  • 4




    @Keltari Actually no, @Zak is correct. For some reason when you add a line break in Excel (using Alt+Enter), only 0xA is entered, not the full 0xD 0xA, which means LF, instead of CR/LF. Excel interprets this and show the line break, while the plain notepad doesn't, because it expects CR/LF. It's a difference in formats being detected more than a bug, but still, that is the correct reason.
    – ChatterOne
    2 days ago








  • 4




    @Keltari There is nothing to argue. Use a binary editor and see what's written in the file.
    – ChatterOne
    2 days ago






  • 1




    @Keltari Honestly these upvotes are mostly the effect from being the accepted answer on a HNQ. You can see how many more people agree with the other answers.
    – kapex
    2 days ago














25












25








25






Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.






share|improve this answer














Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 18 at 21:56

























answered Dec 18 at 21:50









Keltari

50.7k18117169




50.7k18117169








  • 3




    That makes complete sense, thank you!
    – Kyle Dixon
    Dec 18 at 23:00






  • 6




    This answer is wrong. Try saving your notepad after pasting the text with line break. Then open file with wordpad instead. Just a bug in old versions of notepad. Your should mark the other answer as correct.
    – Zak
    Dec 19 at 23:34








  • 4




    @Keltari Actually no, @Zak is correct. For some reason when you add a line break in Excel (using Alt+Enter), only 0xA is entered, not the full 0xD 0xA, which means LF, instead of CR/LF. Excel interprets this and show the line break, while the plain notepad doesn't, because it expects CR/LF. It's a difference in formats being detected more than a bug, but still, that is the correct reason.
    – ChatterOne
    2 days ago








  • 4




    @Keltari There is nothing to argue. Use a binary editor and see what's written in the file.
    – ChatterOne
    2 days ago






  • 1




    @Keltari Honestly these upvotes are mostly the effect from being the accepted answer on a HNQ. You can see how many more people agree with the other answers.
    – kapex
    2 days ago














  • 3




    That makes complete sense, thank you!
    – Kyle Dixon
    Dec 18 at 23:00






  • 6




    This answer is wrong. Try saving your notepad after pasting the text with line break. Then open file with wordpad instead. Just a bug in old versions of notepad. Your should mark the other answer as correct.
    – Zak
    Dec 19 at 23:34








  • 4




    @Keltari Actually no, @Zak is correct. For some reason when you add a line break in Excel (using Alt+Enter), only 0xA is entered, not the full 0xD 0xA, which means LF, instead of CR/LF. Excel interprets this and show the line break, while the plain notepad doesn't, because it expects CR/LF. It's a difference in formats being detected more than a bug, but still, that is the correct reason.
    – ChatterOne
    2 days ago








  • 4




    @Keltari There is nothing to argue. Use a binary editor and see what's written in the file.
    – ChatterOne
    2 days ago






  • 1




    @Keltari Honestly these upvotes are mostly the effect from being the accepted answer on a HNQ. You can see how many more people agree with the other answers.
    – kapex
    2 days ago








3




3




That makes complete sense, thank you!
– Kyle Dixon
Dec 18 at 23:00




That makes complete sense, thank you!
– Kyle Dixon
Dec 18 at 23:00




6




6




This answer is wrong. Try saving your notepad after pasting the text with line break. Then open file with wordpad instead. Just a bug in old versions of notepad. Your should mark the other answer as correct.
– Zak
Dec 19 at 23:34






This answer is wrong. Try saving your notepad after pasting the text with line break. Then open file with wordpad instead. Just a bug in old versions of notepad. Your should mark the other answer as correct.
– Zak
Dec 19 at 23:34






4




4




@Keltari Actually no, @Zak is correct. For some reason when you add a line break in Excel (using Alt+Enter), only 0xA is entered, not the full 0xD 0xA, which means LF, instead of CR/LF. Excel interprets this and show the line break, while the plain notepad doesn't, because it expects CR/LF. It's a difference in formats being detected more than a bug, but still, that is the correct reason.
– ChatterOne
2 days ago






@Keltari Actually no, @Zak is correct. For some reason when you add a line break in Excel (using Alt+Enter), only 0xA is entered, not the full 0xD 0xA, which means LF, instead of CR/LF. Excel interprets this and show the line break, while the plain notepad doesn't, because it expects CR/LF. It's a difference in formats being detected more than a bug, but still, that is the correct reason.
– ChatterOne
2 days ago






4




4




@Keltari There is nothing to argue. Use a binary editor and see what's written in the file.
– ChatterOne
2 days ago




@Keltari There is nothing to argue. Use a binary editor and see what's written in the file.
– ChatterOne
2 days ago




1




1




@Keltari Honestly these upvotes are mostly the effect from being the accepted answer on a HNQ. You can see how many more people agree with the other answers.
– kapex
2 days ago




@Keltari Honestly these upvotes are mostly the effect from being the accepted answer on a HNQ. You can see how many more people agree with the other answers.
– kapex
2 days ago













44














This is true when you use Notepad, which is Microsoft's basic text editor that is already pre-installed in Windows.



However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transferred.



Excel:



Excel



Cell marked, then copy-paste into Notepad++:



Notepad++



Same content pasted into Notepad (the Windows default editor):



WindowsNotpad



Note that in both cases, quotation marks were added automatically!



The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:



Notepad++withcontrochars



As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.



Mass processing of such data



If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.



There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.



You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.






share|improve this answer























  • This is great thank you so much!
    – Kyle Dixon
    Dec 18 at 23:00






  • 12




    Notepad++ showing CRLF there is actually because it sees the LF and assumes it's supposed to be a full CRLF and converts it.
    – 3D1T0R
    Dec 19 at 2:08






  • 4




    @3D1T0R: it depends on the Notepad++ line ending setting. It's possible to "binary paste" to keep the original Excel formatting, which is indeed a LF only.
    – Thomas Weller
    Dec 19 at 11:15






  • 1




    This should be the accepted answer
    – ChatterOne
    2 days ago






  • 1




    Do note that Notepad under Windows 10 version 1809 has the option to use LF as a linebreak (instead of CR-LF). If you use that, there's no converting but linebreaks are still displayed properly.
    – Erik von Asmuth
    yesterday
















44














This is true when you use Notepad, which is Microsoft's basic text editor that is already pre-installed in Windows.



However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transferred.



Excel:



Excel



Cell marked, then copy-paste into Notepad++:



Notepad++



Same content pasted into Notepad (the Windows default editor):



WindowsNotpad



Note that in both cases, quotation marks were added automatically!



The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:



Notepad++withcontrochars



As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.



Mass processing of such data



If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.



There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.



You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.






share|improve this answer























  • This is great thank you so much!
    – Kyle Dixon
    Dec 18 at 23:00






  • 12




    Notepad++ showing CRLF there is actually because it sees the LF and assumes it's supposed to be a full CRLF and converts it.
    – 3D1T0R
    Dec 19 at 2:08






  • 4




    @3D1T0R: it depends on the Notepad++ line ending setting. It's possible to "binary paste" to keep the original Excel formatting, which is indeed a LF only.
    – Thomas Weller
    Dec 19 at 11:15






  • 1




    This should be the accepted answer
    – ChatterOne
    2 days ago






  • 1




    Do note that Notepad under Windows 10 version 1809 has the option to use LF as a linebreak (instead of CR-LF). If you use that, there's no converting but linebreaks are still displayed properly.
    – Erik von Asmuth
    yesterday














44












44








44






This is true when you use Notepad, which is Microsoft's basic text editor that is already pre-installed in Windows.



However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transferred.



Excel:



Excel



Cell marked, then copy-paste into Notepad++:



Notepad++



Same content pasted into Notepad (the Windows default editor):



WindowsNotpad



Note that in both cases, quotation marks were added automatically!



The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:



Notepad++withcontrochars



As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.



Mass processing of such data



If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.



There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.



You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.






share|improve this answer














This is true when you use Notepad, which is Microsoft's basic text editor that is already pre-installed in Windows.



However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transferred.



Excel:



Excel



Cell marked, then copy-paste into Notepad++:



Notepad++



Same content pasted into Notepad (the Windows default editor):



WindowsNotpad



Note that in both cases, quotation marks were added automatically!



The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:



Notepad++withcontrochars



As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.



Mass processing of such data



If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.



There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.



You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago









Run5k

10.7k72749




10.7k72749










answered Dec 18 at 22:17









Christian Geiselmann

626312




626312












  • This is great thank you so much!
    – Kyle Dixon
    Dec 18 at 23:00






  • 12




    Notepad++ showing CRLF there is actually because it sees the LF and assumes it's supposed to be a full CRLF and converts it.
    – 3D1T0R
    Dec 19 at 2:08






  • 4




    @3D1T0R: it depends on the Notepad++ line ending setting. It's possible to "binary paste" to keep the original Excel formatting, which is indeed a LF only.
    – Thomas Weller
    Dec 19 at 11:15






  • 1




    This should be the accepted answer
    – ChatterOne
    2 days ago






  • 1




    Do note that Notepad under Windows 10 version 1809 has the option to use LF as a linebreak (instead of CR-LF). If you use that, there's no converting but linebreaks are still displayed properly.
    – Erik von Asmuth
    yesterday


















  • This is great thank you so much!
    – Kyle Dixon
    Dec 18 at 23:00






  • 12




    Notepad++ showing CRLF there is actually because it sees the LF and assumes it's supposed to be a full CRLF and converts it.
    – 3D1T0R
    Dec 19 at 2:08






  • 4




    @3D1T0R: it depends on the Notepad++ line ending setting. It's possible to "binary paste" to keep the original Excel formatting, which is indeed a LF only.
    – Thomas Weller
    Dec 19 at 11:15






  • 1




    This should be the accepted answer
    – ChatterOne
    2 days ago






  • 1




    Do note that Notepad under Windows 10 version 1809 has the option to use LF as a linebreak (instead of CR-LF). If you use that, there's no converting but linebreaks are still displayed properly.
    – Erik von Asmuth
    yesterday
















This is great thank you so much!
– Kyle Dixon
Dec 18 at 23:00




This is great thank you so much!
– Kyle Dixon
Dec 18 at 23:00




12




12




Notepad++ showing CRLF there is actually because it sees the LF and assumes it's supposed to be a full CRLF and converts it.
– 3D1T0R
Dec 19 at 2:08




Notepad++ showing CRLF there is actually because it sees the LF and assumes it's supposed to be a full CRLF and converts it.
– 3D1T0R
Dec 19 at 2:08




4




4




@3D1T0R: it depends on the Notepad++ line ending setting. It's possible to "binary paste" to keep the original Excel formatting, which is indeed a LF only.
– Thomas Weller
Dec 19 at 11:15




@3D1T0R: it depends on the Notepad++ line ending setting. It's possible to "binary paste" to keep the original Excel formatting, which is indeed a LF only.
– Thomas Weller
Dec 19 at 11:15




1




1




This should be the accepted answer
– ChatterOne
2 days ago




This should be the accepted answer
– ChatterOne
2 days ago




1




1




Do note that Notepad under Windows 10 version 1809 has the option to use LF as a linebreak (instead of CR-LF). If you use that, there's no converting but linebreaks are still displayed properly.
– Erik von Asmuth
yesterday




Do note that Notepad under Windows 10 version 1809 has the option to use LF as a linebreak (instead of CR-LF). If you use that, there's no converting but linebreaks are still displayed properly.
– Erik von Asmuth
yesterday











32














Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.



There are three different forms of line breaks in use in computing:




  • Unix and macOS 10.0+ line endings use a line-feed character (LF)

  • Macintosh (prior to macOS 10.0) line endings use a carriage-return character (CR)

  • Windows line endings use a combination of carriage-return and line-feed characters (CRLF)


This is a hold over from the way that type writers work.



Excel uses a combination of these line breaks to represent cells with multiple lines:




  • Cells are separated by the Tab character.

  • Rows are separated by the CRLF characters.

  • Multiline cells separate each line using just the LF character.


This becomes apparent when you save your workbook as a .txt file and open it with a text editor that supports showing these characters.



Excel



Notepad++



Notepad only processes CRLF as newlines and ignores LF or CR by themselves. They're still in the document, but aren't visible in any way.



Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.






share|improve this answer



















  • 3




    You should also mention that the LF is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
    – 3D1T0R
    Dec 19 at 1:58






  • 3




    Note that this is only how Excel exports workbooks to text files. For xlsx files, lines breaks within a string are actually represented by CRLF.
    – kapex
    Dec 19 at 15:39








  • 3




    Interestingly, it is entirely possible to construct a cell that "really" contains a CRLF - ="A"&CHAR(13)&CHAR(10)&"B". Line breaks produced by formulas are not visible in excel, but work fine if copied and then pasted via "paste values". A value pasted from manually typing "A<CRLF>B" in notepad and copying will also retain the CRLF.
    – Random832
    Dec 19 at 16:09






  • 3




    @3D1T0R is right. Try to copy a single Excel cell with text "anb" (where "n" represents a newline) into Notepad. You will see "ab" in Notepad (with the quotation marks). But if you put the caret in front of "a" and press the Right arrow key on your keyboard three times, you will find that there is an invisible zero-width character between "a" and "b"! Indeed, you can also use the Shift key to select it and copy it to the clipboard!
    – Andreas Rejbrand
    Dec 19 at 18:25








  • 2




    @AndreasRejbrand: I have used this technique a number of times to make text files with LF EOLs readable quickly. i.e. Find an LF character, select it, Ctrl+C, Ctrl+Home, Ctrl+F, Ctrl+V, Enter, Esc, Enter. Then repeatedly F3, Enter till end. [Edit: <kbd> doesn't work in comments?]
    – 3D1T0R
    Dec 19 at 19:21


















32














Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.



There are three different forms of line breaks in use in computing:




  • Unix and macOS 10.0+ line endings use a line-feed character (LF)

  • Macintosh (prior to macOS 10.0) line endings use a carriage-return character (CR)

  • Windows line endings use a combination of carriage-return and line-feed characters (CRLF)


This is a hold over from the way that type writers work.



Excel uses a combination of these line breaks to represent cells with multiple lines:




  • Cells are separated by the Tab character.

  • Rows are separated by the CRLF characters.

  • Multiline cells separate each line using just the LF character.


This becomes apparent when you save your workbook as a .txt file and open it with a text editor that supports showing these characters.



Excel



Notepad++



Notepad only processes CRLF as newlines and ignores LF or CR by themselves. They're still in the document, but aren't visible in any way.



Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.






share|improve this answer



















  • 3




    You should also mention that the LF is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
    – 3D1T0R
    Dec 19 at 1:58






  • 3




    Note that this is only how Excel exports workbooks to text files. For xlsx files, lines breaks within a string are actually represented by CRLF.
    – kapex
    Dec 19 at 15:39








  • 3




    Interestingly, it is entirely possible to construct a cell that "really" contains a CRLF - ="A"&CHAR(13)&CHAR(10)&"B". Line breaks produced by formulas are not visible in excel, but work fine if copied and then pasted via "paste values". A value pasted from manually typing "A<CRLF>B" in notepad and copying will also retain the CRLF.
    – Random832
    Dec 19 at 16:09






  • 3




    @3D1T0R is right. Try to copy a single Excel cell with text "anb" (where "n" represents a newline) into Notepad. You will see "ab" in Notepad (with the quotation marks). But if you put the caret in front of "a" and press the Right arrow key on your keyboard three times, you will find that there is an invisible zero-width character between "a" and "b"! Indeed, you can also use the Shift key to select it and copy it to the clipboard!
    – Andreas Rejbrand
    Dec 19 at 18:25








  • 2




    @AndreasRejbrand: I have used this technique a number of times to make text files with LF EOLs readable quickly. i.e. Find an LF character, select it, Ctrl+C, Ctrl+Home, Ctrl+F, Ctrl+V, Enter, Esc, Enter. Then repeatedly F3, Enter till end. [Edit: <kbd> doesn't work in comments?]
    – 3D1T0R
    Dec 19 at 19:21
















32












32








32






Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.



There are three different forms of line breaks in use in computing:




  • Unix and macOS 10.0+ line endings use a line-feed character (LF)

  • Macintosh (prior to macOS 10.0) line endings use a carriage-return character (CR)

  • Windows line endings use a combination of carriage-return and line-feed characters (CRLF)


This is a hold over from the way that type writers work.



Excel uses a combination of these line breaks to represent cells with multiple lines:




  • Cells are separated by the Tab character.

  • Rows are separated by the CRLF characters.

  • Multiline cells separate each line using just the LF character.


This becomes apparent when you save your workbook as a .txt file and open it with a text editor that supports showing these characters.



Excel



Notepad++



Notepad only processes CRLF as newlines and ignores LF or CR by themselves. They're still in the document, but aren't visible in any way.



Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.






share|improve this answer














Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.



There are three different forms of line breaks in use in computing:




  • Unix and macOS 10.0+ line endings use a line-feed character (LF)

  • Macintosh (prior to macOS 10.0) line endings use a carriage-return character (CR)

  • Windows line endings use a combination of carriage-return and line-feed characters (CRLF)


This is a hold over from the way that type writers work.



Excel uses a combination of these line breaks to represent cells with multiple lines:




  • Cells are separated by the Tab character.

  • Rows are separated by the CRLF characters.

  • Multiline cells separate each line using just the LF character.


This becomes apparent when you save your workbook as a .txt file and open it with a text editor that supports showing these characters.



Excel



Notepad++



Notepad only processes CRLF as newlines and ignores LF or CR by themselves. They're still in the document, but aren't visible in any way.



Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 19 at 2:24

























answered Dec 18 at 22:33









Worthwelle

2,62731025




2,62731025








  • 3




    You should also mention that the LF is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
    – 3D1T0R
    Dec 19 at 1:58






  • 3




    Note that this is only how Excel exports workbooks to text files. For xlsx files, lines breaks within a string are actually represented by CRLF.
    – kapex
    Dec 19 at 15:39








  • 3




    Interestingly, it is entirely possible to construct a cell that "really" contains a CRLF - ="A"&CHAR(13)&CHAR(10)&"B". Line breaks produced by formulas are not visible in excel, but work fine if copied and then pasted via "paste values". A value pasted from manually typing "A<CRLF>B" in notepad and copying will also retain the CRLF.
    – Random832
    Dec 19 at 16:09






  • 3




    @3D1T0R is right. Try to copy a single Excel cell with text "anb" (where "n" represents a newline) into Notepad. You will see "ab" in Notepad (with the quotation marks). But if you put the caret in front of "a" and press the Right arrow key on your keyboard three times, you will find that there is an invisible zero-width character between "a" and "b"! Indeed, you can also use the Shift key to select it and copy it to the clipboard!
    – Andreas Rejbrand
    Dec 19 at 18:25








  • 2




    @AndreasRejbrand: I have used this technique a number of times to make text files with LF EOLs readable quickly. i.e. Find an LF character, select it, Ctrl+C, Ctrl+Home, Ctrl+F, Ctrl+V, Enter, Esc, Enter. Then repeatedly F3, Enter till end. [Edit: <kbd> doesn't work in comments?]
    – 3D1T0R
    Dec 19 at 19:21
















  • 3




    You should also mention that the LF is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
    – 3D1T0R
    Dec 19 at 1:58






  • 3




    Note that this is only how Excel exports workbooks to text files. For xlsx files, lines breaks within a string are actually represented by CRLF.
    – kapex
    Dec 19 at 15:39








  • 3




    Interestingly, it is entirely possible to construct a cell that "really" contains a CRLF - ="A"&CHAR(13)&CHAR(10)&"B". Line breaks produced by formulas are not visible in excel, but work fine if copied and then pasted via "paste values". A value pasted from manually typing "A<CRLF>B" in notepad and copying will also retain the CRLF.
    – Random832
    Dec 19 at 16:09






  • 3




    @3D1T0R is right. Try to copy a single Excel cell with text "anb" (where "n" represents a newline) into Notepad. You will see "ab" in Notepad (with the quotation marks). But if you put the caret in front of "a" and press the Right arrow key on your keyboard three times, you will find that there is an invisible zero-width character between "a" and "b"! Indeed, you can also use the Shift key to select it and copy it to the clipboard!
    – Andreas Rejbrand
    Dec 19 at 18:25








  • 2




    @AndreasRejbrand: I have used this technique a number of times to make text files with LF EOLs readable quickly. i.e. Find an LF character, select it, Ctrl+C, Ctrl+Home, Ctrl+F, Ctrl+V, Enter, Esc, Enter. Then repeatedly F3, Enter till end. [Edit: <kbd> doesn't work in comments?]
    – 3D1T0R
    Dec 19 at 19:21










3




3




You should also mention that the LF is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
– 3D1T0R
Dec 19 at 1:58




You should also mention that the LF is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
– 3D1T0R
Dec 19 at 1:58




3




3




Note that this is only how Excel exports workbooks to text files. For xlsx files, lines breaks within a string are actually represented by CRLF.
– kapex
Dec 19 at 15:39






Note that this is only how Excel exports workbooks to text files. For xlsx files, lines breaks within a string are actually represented by CRLF.
– kapex
Dec 19 at 15:39






3




3




Interestingly, it is entirely possible to construct a cell that "really" contains a CRLF - ="A"&CHAR(13)&CHAR(10)&"B". Line breaks produced by formulas are not visible in excel, but work fine if copied and then pasted via "paste values". A value pasted from manually typing "A<CRLF>B" in notepad and copying will also retain the CRLF.
– Random832
Dec 19 at 16:09




Interestingly, it is entirely possible to construct a cell that "really" contains a CRLF - ="A"&CHAR(13)&CHAR(10)&"B". Line breaks produced by formulas are not visible in excel, but work fine if copied and then pasted via "paste values". A value pasted from manually typing "A<CRLF>B" in notepad and copying will also retain the CRLF.
– Random832
Dec 19 at 16:09




3




3




@3D1T0R is right. Try to copy a single Excel cell with text "anb" (where "n" represents a newline) into Notepad. You will see "ab" in Notepad (with the quotation marks). But if you put the caret in front of "a" and press the Right arrow key on your keyboard three times, you will find that there is an invisible zero-width character between "a" and "b"! Indeed, you can also use the Shift key to select it and copy it to the clipboard!
– Andreas Rejbrand
Dec 19 at 18:25






@3D1T0R is right. Try to copy a single Excel cell with text "anb" (where "n" represents a newline) into Notepad. You will see "ab" in Notepad (with the quotation marks). But if you put the caret in front of "a" and press the Right arrow key on your keyboard three times, you will find that there is an invisible zero-width character between "a" and "b"! Indeed, you can also use the Shift key to select it and copy it to the clipboard!
– Andreas Rejbrand
Dec 19 at 18:25






2




2




@AndreasRejbrand: I have used this technique a number of times to make text files with LF EOLs readable quickly. i.e. Find an LF character, select it, Ctrl+C, Ctrl+Home, Ctrl+F, Ctrl+V, Enter, Esc, Enter. Then repeatedly F3, Enter till end. [Edit: <kbd> doesn't work in comments?]
– 3D1T0R
Dec 19 at 19:21






@AndreasRejbrand: I have used this technique a number of times to make text files with LF EOLs readable quickly. i.e. Find an LF character, select it, Ctrl+C, Ctrl+Home, Ctrl+F, Ctrl+V, Enter, Esc, Enter. Then repeatedly F3, Enter till end. [Edit: <kbd> doesn't work in comments?]
– 3D1T0R
Dec 19 at 19:21













0














Excel uses LF to denote new lines within a cell. Notepad does not consider this to be a new-line as Windows in general uses CRLF for new-lines.



Notepad++ is more intelligent than the relatively simple Notepad and thus interprets LF as a new-line also.






share|improve this answer





















  • I don't use Notepad++, but out of curiosity: what happens if you have an Excel table consisting of at least two rows containing a multiline cell and copy-paste that into Notepad++?
    – Andreas Rejbrand
    Dec 19 at 18:27






  • 1




    @AndreasRejbrand The multiline cells will be wrapped in " and Notepad++ will normalize all of the line endings to match. See here. If you instead save as .txt and open in Notepad++, the multiline cells will have LF only. See here.
    – Worthwelle
    2 days ago


















0














Excel uses LF to denote new lines within a cell. Notepad does not consider this to be a new-line as Windows in general uses CRLF for new-lines.



Notepad++ is more intelligent than the relatively simple Notepad and thus interprets LF as a new-line also.






share|improve this answer





















  • I don't use Notepad++, but out of curiosity: what happens if you have an Excel table consisting of at least two rows containing a multiline cell and copy-paste that into Notepad++?
    – Andreas Rejbrand
    Dec 19 at 18:27






  • 1




    @AndreasRejbrand The multiline cells will be wrapped in " and Notepad++ will normalize all of the line endings to match. See here. If you instead save as .txt and open in Notepad++, the multiline cells will have LF only. See here.
    – Worthwelle
    2 days ago
















0












0








0






Excel uses LF to denote new lines within a cell. Notepad does not consider this to be a new-line as Windows in general uses CRLF for new-lines.



Notepad++ is more intelligent than the relatively simple Notepad and thus interprets LF as a new-line also.






share|improve this answer












Excel uses LF to denote new lines within a cell. Notepad does not consider this to be a new-line as Windows in general uses CRLF for new-lines.



Notepad++ is more intelligent than the relatively simple Notepad and thus interprets LF as a new-line also.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 19 at 11:24









Benjamin Goodacre

486410




486410












  • I don't use Notepad++, but out of curiosity: what happens if you have an Excel table consisting of at least two rows containing a multiline cell and copy-paste that into Notepad++?
    – Andreas Rejbrand
    Dec 19 at 18:27






  • 1




    @AndreasRejbrand The multiline cells will be wrapped in " and Notepad++ will normalize all of the line endings to match. See here. If you instead save as .txt and open in Notepad++, the multiline cells will have LF only. See here.
    – Worthwelle
    2 days ago




















  • I don't use Notepad++, but out of curiosity: what happens if you have an Excel table consisting of at least two rows containing a multiline cell and copy-paste that into Notepad++?
    – Andreas Rejbrand
    Dec 19 at 18:27






  • 1




    @AndreasRejbrand The multiline cells will be wrapped in " and Notepad++ will normalize all of the line endings to match. See here. If you instead save as .txt and open in Notepad++, the multiline cells will have LF only. See here.
    – Worthwelle
    2 days ago


















I don't use Notepad++, but out of curiosity: what happens if you have an Excel table consisting of at least two rows containing a multiline cell and copy-paste that into Notepad++?
– Andreas Rejbrand
Dec 19 at 18:27




I don't use Notepad++, but out of curiosity: what happens if you have an Excel table consisting of at least two rows containing a multiline cell and copy-paste that into Notepad++?
– Andreas Rejbrand
Dec 19 at 18:27




1




1




@AndreasRejbrand The multiline cells will be wrapped in " and Notepad++ will normalize all of the line endings to match. See here. If you instead save as .txt and open in Notepad++, the multiline cells will have LF only. See here.
– Worthwelle
2 days ago






@AndreasRejbrand The multiline cells will be wrapped in " and Notepad++ will normalize all of the line endings to match. See here. If you instead save as .txt and open in Notepad++, the multiline cells will have LF only. See here.
– Worthwelle
2 days ago












Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.













Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.












Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385708%2fwhy-do-excel-line-breaks-not-transfer-into-notepad%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]