<?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 Re: Importing xlsx file. Help me turn the coma into a dot, please. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Importing-xlsx-file-Help-me-turn-the-coma-into-a-dot-please/m-p/361897#M61158</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17491"&gt;@Leonard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There's a few different ways to do that, but here's some JSL I wrote a while back that fixes that. I think JMP 16 is supposed to have a setting within the import wizard that allows overriding commas.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
//This replaces all commas by decimals
dt = Current Data Table();
Col_Names = dt &amp;lt;&amp;lt; Get Column Names( Nominal, String );
Nr = N Rows( dt );
For( l = 1, l &amp;lt;= N Items( Col_Names ), l++,
	One_col = Column( dt, Col_Names[l] );
	For( k = 1, k &amp;lt;= Nr, k++,
		One_col[k] = Substitute( One_Col[k], ",", "." )
	);
);
//This part turns the "nominal" columns back to "numeric"
For( l = 1, l &amp;lt;= N Items( Col_Names ), l++,
	Column( dt, Col_Names[l] ) &amp;lt;&amp;lt; Data Type( Numeric ) &amp;lt;&amp;lt; Modeling Type( Continuous ) &amp;lt;&amp;lt; Format( Best, 12 )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can try going File &amp;gt; Preferences &amp;gt; Windows Specific and check the box at the top: Use JMP.... But, I actually haven't gotten much luck with that actually overriding the comma.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, the JSL code should help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 18:00:59 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2021-02-23T18:00:59Z</dc:date>
    <item>
      <title>Importing xlsx file. Help me turn the coma into a dot, please.</title>
      <link>https://community.jmp.com/t5/Discussions/Importing-xlsx-file-Help-me-turn-the-coma-into-a-dot-please/m-p/361890#M61157</link>
      <description>&lt;P&gt;Good evening, dear&amp;nbsp;colleagues!&lt;/P&gt;&lt;P&gt;I didn't find the same topic.&lt;/P&gt;&lt;P&gt;So, I imported xlsx into jmp, but my numeric values became nominal.&lt;/P&gt;&lt;P&gt;How to avoid this situation?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:26:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Importing-xlsx-file-Help-me-turn-the-coma-into-a-dot-please/m-p/361890#M61157</guid>
      <dc:creator>Leonard</dc:creator>
      <dc:date>2023-06-10T23:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Importing xlsx file. Help me turn the coma into a dot, please.</title>
      <link>https://community.jmp.com/t5/Discussions/Importing-xlsx-file-Help-me-turn-the-coma-into-a-dot-please/m-p/361897#M61158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17491"&gt;@Leonard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There's a few different ways to do that, but here's some JSL I wrote a while back that fixes that. I think JMP 16 is supposed to have a setting within the import wizard that allows overriding commas.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
//This replaces all commas by decimals
dt = Current Data Table();
Col_Names = dt &amp;lt;&amp;lt; Get Column Names( Nominal, String );
Nr = N Rows( dt );
For( l = 1, l &amp;lt;= N Items( Col_Names ), l++,
	One_col = Column( dt, Col_Names[l] );
	For( k = 1, k &amp;lt;= Nr, k++,
		One_col[k] = Substitute( One_Col[k], ",", "." )
	);
);
//This part turns the "nominal" columns back to "numeric"
For( l = 1, l &amp;lt;= N Items( Col_Names ), l++,
	Column( dt, Col_Names[l] ) &amp;lt;&amp;lt; Data Type( Numeric ) &amp;lt;&amp;lt; Modeling Type( Continuous ) &amp;lt;&amp;lt; Format( Best, 12 )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can try going File &amp;gt; Preferences &amp;gt; Windows Specific and check the box at the top: Use JMP.... But, I actually haven't gotten much luck with that actually overriding the comma.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, the JSL code should help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 18:00:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Importing-xlsx-file-Help-me-turn-the-coma-into-a-dot-please/m-p/361897#M61158</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-02-23T18:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Importing xlsx file. Help me turn the coma into a dot, please.</title>
      <link>https://community.jmp.com/t5/Discussions/Importing-xlsx-file-Help-me-turn-the-coma-into-a-dot-please/m-p/361925#M61161</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"File &amp;gt; Preferences &amp;gt; Windows Specific and check the box at the top: Use JMP...."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;I've unchecked this&amp;nbsp;box&amp;nbsp;Use JMP language&amp;nbsp;and voila.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 18:57:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Importing-xlsx-file-Help-me-turn-the-coma-into-a-dot-please/m-p/361925#M61161</guid>
      <dc:creator>Leonard</dc:creator>
      <dc:date>2021-02-23T18:57:27Z</dc:date>
    </item>
  </channel>
</rss>

