<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic importing from excel with a new line in a cell in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354030#M60379</link>
    <description>&lt;P&gt;Dear Members of the community,&lt;/P&gt;
&lt;P&gt;Does anyone know how to import data from excel correctly when there are line brakes within cells?&lt;/P&gt;
&lt;P&gt;in the attached excel sheet, cells B4 and B7 have a line brake that makes the import incorrect no matter how i try to import or just copy and paste into JMP. Is there an importing method that is robust to this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;line brakes can be entered into a cell in excel using Alt+Enter or if more than one paragraph is copied from other programs. It throws a spanner in the works and with large files causes havoc.&lt;/P&gt;
&lt;P&gt;i am using JMP 14 but i do not think it is a version issue.&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 20:42:48 GMT</pubDate>
    <dc:creator>ron_horne</dc:creator>
    <dc:date>2023-06-10T20:42:48Z</dc:date>
    <item>
      <title>importing from excel with a new line in a cell</title>
      <link>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354030#M60379</link>
      <description>&lt;P&gt;Dear Members of the community,&lt;/P&gt;
&lt;P&gt;Does anyone know how to import data from excel correctly when there are line brakes within cells?&lt;/P&gt;
&lt;P&gt;in the attached excel sheet, cells B4 and B7 have a line brake that makes the import incorrect no matter how i try to import or just copy and paste into JMP. Is there an importing method that is robust to this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;line brakes can be entered into a cell in excel using Alt+Enter or if more than one paragraph is copied from other programs. It throws a spanner in the works and with large files causes havoc.&lt;/P&gt;
&lt;P&gt;i am using JMP 14 but i do not think it is a version issue.&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:42:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354030#M60379</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2023-06-10T20:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: importing from excel with a new line in a cell</title>
      <link>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354522#M60442</link>
      <description>&lt;P&gt;I just had this problem last week, drove me nuts!&lt;/P&gt;
&lt;P&gt;I threw in some recode after the import to collapse whitespace and that fixed it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Data Table( "Sheet1" );
dt &amp;lt;&amp;lt; Begin Data Update;
dt &amp;lt;&amp;lt; Recode Column(
	dt:Nominal,
	{Collapse Whitespace( _rcNow )},
	Target Column( :Nominal )
);
dt &amp;lt;&amp;lt; End Data Update;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Feb 2021 14:45:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354522#M60442</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2021-02-01T14:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: importing from excel with a new line in a cell</title>
      <link>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354643#M60451</link>
      <description>&lt;P&gt;Thank you&amp;nbsp; &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4386"&gt;@Byron_JMP&lt;/a&gt; for your suggestion. But it didn't work in my case, perhaps we have different import settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my original table in excel looks like this, with line brakes in cells B4 and B7&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_0-1612196517229.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29868iE76BA4ED272A3565/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_0-1612196517229.png" alt="ron_horne_0-1612196517229.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using the on the fly copy and paste with column names i get the following image. where every line brake is interpenetrated as a new table row,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_1-1612196627195.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29869iC1EA3A4C6E35ED58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_1-1612196627195.png" alt="ron_horne_1-1612196627195.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using the import wizard i get the following where the original line brakes within the cells have been removed together with the reminder of its content.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_2-1612196797987.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29871i5D5A3E9E601F076B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_2-1612196797987.png" alt="ron_horne_2-1612196797987.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, I do not get a whitespace which its removal would solve anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally, this could be fixed within JMP as part of the way it reads the data while importing. JMP should&lt;/P&gt;
&lt;P&gt;Interpret this as either a new line within a cell or just a space between characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when opening the excel file in SAS using default settings, the result is much better. The line brake in the cell was just removed. This maintains the overall integrity of the cells, rows and columns of the file.&lt;/P&gt;
&lt;P&gt;Iit would have been better to add a space though. Not sure how i would be able to add it myself later if i had to use the text for analysis.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_0-1612204506067.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29873i6C9577461B9A87A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_0-1612204506067.png" alt="ron_horne_0-1612204506067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the way i did manage to solve it so far is by searching and replacing all the new lines in Excel prior to the import. the new line character to search for in excel is Ctrl+j. replacing it with a simple space has given me the the least confusing outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you can address this to the right person to fix it in future versions of the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone has other solutions please do share. I am sure many files imported from excel and other formats that allow for line brakes within a cell has produced imperfect data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 18:37:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354643#M60451</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-02-01T18:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: importing from excel with a new line in a cell</title>
      <link>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354751#M60461</link>
      <description>&lt;P&gt;I opened your Excel file with the Excel Import Wizard.&lt;/P&gt;
&lt;P&gt;Then used both Recode as well as a formula to collapse whitespace&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-02-01 at 2.20.23 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29880i69477639DC47EFFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-02-01 at 2.20.23 PM.png" alt="Screen Shot 2021-02-01 at 2.20.23 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Both approaches use the same function. Although the function is called Collapse Whitespace, it might as well be called, One space between each alphanumeric symbol in a string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although we aren't talking MS stuff here, diagnosing the issue in the Excel sheet is more important because it is a data entry error there, as well as a source of miserable problems in Excel too. The hard return can either look like a no space at all, or maybe a space if the wrap role it turned on. Either way its a S in S out kind of problem.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 19:33:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354751#M60461</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2021-02-01T19:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: importing from excel with a new line in a cell</title>
      <link>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354813#M60466</link>
      <description>&lt;P&gt;Thank you very much &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4386"&gt;@Byron_JMP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have now noticed that the import did work, i just needed to increase the height of the rows to see it properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 21:53:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354813#M60466</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-02-01T21:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: importing from excel with a new line in a cell</title>
      <link>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354912#M60477</link>
      <description>&lt;P&gt;Whew! &amp;nbsp;Super glad I wasn't going crazy there. : )&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 02:15:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/importing-from-excel-with-a-new-line-in-a-cell/m-p/354912#M60477</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2021-02-02T02:15:33Z</dc:date>
    </item>
  </channel>
</rss>

