<?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: How to force datatype of columns when importing Excel file in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/42275#M24623</link>
    <description>&lt;P&gt;would it be possible to save that worksheet as a CSV?&lt;/P&gt;
&lt;P&gt;There is a little more control over how the columns are imported from CSV files.&lt;/P&gt;
&lt;P&gt;In the Source script from a CSV the data and modeling type for each column is captured when the file is imported, from there its pretty easy to edid the Source script to have the file import the way you want.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 19:56:01 GMT</pubDate>
    <dc:creator>Byron_JMP</dc:creator>
    <dc:date>2017-07-20T19:56:01Z</dc:date>
    <item>
      <title>How to force datatype of columns when importing Excel file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/41418#M24172</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import an Excel worksheet in JSL, but I meet a problem with some columns which are detected by JMP as numeric whereas they should be character. So I end with empty columns and I can't find a way of telling JMP these columns should be read as character, either in JSL or in Excel import wizard.&lt;/P&gt;&lt;P&gt;Here is my JSL script :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;jsl_dt_orig = open(jsl_fic_planning,
	//private,
	Worksheets( "Planning" ),
	Use for all sheets( 0 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 4 ),
		Data Starts on Row( 5 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 63 ),
		Replicated Spanned Rows( 1 ),
		Suppress Hidden Rows( 0 ),
		Suppress Hidden Columns( 0 ),
		Suppress Empty Columns( 0 ),
		Treat as Hierarchy( 0 )//,
		//Limit Column Type Detection (0)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried "Limit Column Type Detection(0)" after seeing it on this&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-2016/Working-With-Excel-the-Advanced-Edition/ta-p/23969" target="_blank"&gt;discussion&lt;/A&gt;, even though I can't find this option in the Excel import wizard, but it doesn't work&amp;nbsp;(maybe it exists only for Mac? I have JMP 12.2 on Windows.).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is even stranger is that when I use Excel import wizard, data type seems ok until I tell data start on row 5 (see column "Etat" for instance). But eventually when I import, data is always missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data I would like to import as text" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6645i77AB55520D6C96D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="jmp_excel_pb2.jpg" alt="Data I would like to import as text" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Data I would like to import as text&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="What I get when I tell data start on row 5" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6644i97C67397AB7C05A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="jmp_excel_pb1.jpg" alt="What I get when I tell data start on row 5" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;What I get when I tell data start on row 5&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So if anyone could help me with formatting my columns at this step, I would be very thankful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Héloïse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 08:58:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/41418#M24172</guid>
      <dc:creator>heloiseheraud</dc:creator>
      <dc:date>2017-07-03T08:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to force datatype of columns when importing Excel file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/42275#M24623</link>
      <description>&lt;P&gt;would it be possible to save that worksheet as a CSV?&lt;/P&gt;
&lt;P&gt;There is a little more control over how the columns are imported from CSV files.&lt;/P&gt;
&lt;P&gt;In the Source script from a CSV the data and modeling type for each column is captured when the file is imported, from there its pretty easy to edid the Source script to have the file import the way you want.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 19:56:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/42275#M24623</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2017-07-20T19:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to force datatype of columns when importing Excel file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/43440#M25154</link>
      <description>&lt;P&gt;I encounter the same problem and it is kind of annoying. Is there any way around it without saving the XLS file as CSV?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:32:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/43440#M25154</guid>
      <dc:creator>vkessler</dc:creator>
      <dc:date>2017-08-21T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to force datatype of columns when importing Excel file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/43442#M25156</link>
      <description>&lt;P&gt;The only solution I found is to explicitly set the column format to "text" in my excel file...&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:51:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/43442#M25156</guid>
      <dc:creator>heloiseheraud</dc:creator>
      <dc:date>2017-08-21T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to force datatype of columns when importing Excel file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/43444#M25157</link>
      <description>&lt;P&gt;Yes, that worked. Still kind of disappointing that this is not fixed in jmp 13...&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:51:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-force-datatype-of-columns-when-importing-Excel-file/m-p/43444#M25157</guid>
      <dc:creator>vkessler</dc:creator>
      <dc:date>2017-08-21T15:51:47Z</dc:date>
    </item>
  </channel>
</rss>

