<?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: JMP14  How can i import multi excel files with defined sheet? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/213303#M42675</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1000"&gt;@juna1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was your final solution to this problem? You mention that you use the "loop" statement. Would it be possible to provide an example of your code?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2019 11:02:57 GMT</pubDate>
    <dc:creator>JoeyJambo</dc:creator>
    <dc:date>2019-06-17T11:02:57Z</dc:date>
    <item>
      <title>JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/84122#M37777</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;there is a function of JMP14 which can import multi excel files together and stack them automatically.&lt;/P&gt;&lt;P&gt;But it also choose the first sheet in excel file, can i define the sheet in the excel which include more than one sheet?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 06:38:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/84122#M37777</guid>
      <dc:creator>juna1</dc:creator>
      <dc:date>2018-11-26T06:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/84127#M37781</link>
      <description>&lt;P&gt;You can select the worksheet you want, when you select the file to open, and then click on the down arrow for the "Open". and select "Open Selected Worksheets".&lt;I class="lia-fa lia-fa-pencil lia-image-edit-icon"&gt;&lt;/I&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="selected.PNG" style="width: 973px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14524i509B851F28AB7102/image-size/large?v=v2&amp;amp;px=999" role="button" title="selected.PNG" alt="selected.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you choose the "Use Excel Wizard" it will allow you to select multiple sheets to open at the same time.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 10:46:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/84127#M37781</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-11-26T10:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/84247#M37816</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;thanks a lot for your reply.&lt;/P&gt;
&lt;P&gt;My questions is&amp;nbsp;about new function " import multiple files"&amp;nbsp;in JMP14.&lt;/P&gt;
&lt;P&gt;I have more than 10 same structure Excel files which i want to extract some data and stack them together.&lt;/P&gt;
&lt;P&gt;For each excel file, there are more than one sheet.&lt;/P&gt;
&lt;P&gt;When i use this function, it also extract the data from the first sheet, how can i get the data in second sheet in each excel file? &amp;nbsp;&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="Capture-7.PNG" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15940i7A57659D44C0458A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture-7.PNG" alt="Capture-7.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 13:42:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/84247#M37816</guid>
      <dc:creator>juna1</dc:creator>
      <dc:date>2019-03-06T13:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184107#M40330</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there any solution for the problem described by #juna1&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 08:49:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184107#M40330</guid>
      <dc:creator>Ordon</dc:creator>
      <dc:date>2019-03-06T08:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184108#M40331</link>
      <description>&lt;P&gt;thanks, Ordon.&lt;/P&gt;&lt;P&gt;I already use the "for" funcition to do it now.&lt;/P&gt;&lt;P&gt;and give up the function"import multi files&amp;nbsp;".&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 08:58:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184108#M40331</guid>
      <dc:creator>juna1</dc:creator>
      <dc:date>2019-03-06T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184109#M40332</link>
      <description>&lt;P&gt;Hi juna1,&lt;/P&gt;&lt;P&gt;is that mean you have to import every single file from given directory manually? It's a pity there is no option to do it via "import multi files" function and jsl.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 09:57:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184109#M40332</guid>
      <dc:creator>Ordon</dc:creator>
      <dc:date>2019-03-06T09:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184182#M40339</link>
      <description>Please add this request to the JMP Wish List</description>
      <pubDate>Wed, 06 Mar 2019 13:44:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184182#M40339</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-03-06T13:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184502#M40348</link>
      <description>&lt;P&gt;No, i use "for "&amp;nbsp; &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;loop statement&amp;nbsp; to do that. it`s ok now. thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 00:35:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/184502#M40348</guid>
      <dc:creator>juna1</dc:creator>
      <dc:date>2019-03-07T00:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/213303#M42675</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1000"&gt;@juna1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was your final solution to this problem? You mention that you use the "loop" statement. Would it be possible to provide an example of your code?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 11:02:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/213303#M42675</guid>
      <dc:creator>JoeyJambo</dc:creator>
      <dc:date>2019-06-17T11:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/213431#M42692</link>
      <description>&lt;P&gt;hi this is part of the script.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dir = Pick Directory( "Select a directory" );
//get all file names under the folder
files = Files In Directory( dir, Recursive );
nfiles = N Items( files );
For( i = 1, i &amp;lt;= N Items( files ), i++,
	fullfile = dir || files[i];
	dt = Open(
		fullfile,
		Worksheets( "Intensity" ),
		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( 1 ),
			Data Starts on Row( 2 ),
			Data Starts on Column( 1 ),
			Data Ends on Row( 0 ),
			Data Ends on Column( 0 ),
			Replicated Spanned Rows( 1 ),
			Replicated Spanned Headers( 0 ),
			Suppress Hidden Rows( 1 ),
			Suppress Hidden Columns( 1 ),
			Suppress Empty Columns( 1 ),
			Treat as Hierarchy( 0 ),
			Multiple Series Stack( 0 ),
			Import Cell Colors( 0 ),
			Limit Column Detect( 0 ),
			Column Separator String( "-" )
		)
	);
	dt &amp;lt;&amp;lt; New Column( "AbbCon1", character, width( 8 ), &amp;lt;&amp;lt;set each value( files[i] ) );
	If( i == 1,
		(dt1 = dt ; dt1 &amp;lt;&amp;lt; Set name( "Tem" ))
	);
	If( i &amp;gt; 1,
		dt1 &amp;lt;&amp;lt; Concatenate( dt, "Append to first table" );
		dt &amp;lt;&amp;lt; closewindow;
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jun 2019 16:48:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/213431#M42692</guid>
      <dc:creator>juna1</dc:creator>
      <dc:date>2019-06-18T16:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/213478#M42706</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1000"&gt;@juna1&lt;/a&gt;Super thanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 10:46:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/213478#M42706</guid>
      <dc:creator>JoeyJambo</dc:creator>
      <dc:date>2019-06-18T10:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/773717#M95500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1000"&gt;@juna1&lt;/a&gt;&amp;nbsp;.&amp;nbsp; This script works great.&amp;nbsp; I notice that if a file in the directory does not contain the worksheet name, the script stops and doesn't complete the remaining files that do have it.&amp;nbsp; Is there some code we can insert to skip files in the selected directory that do not contain the worksheet name?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 19:06:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/773717#M95500</guid>
      <dc:creator>ashwint27</dc:creator>
      <dc:date>2024-07-17T19:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: JMP14  How can i import multi excel files with defined sheet?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/773728#M95504</link>
      <description>&lt;P&gt;You can place a Try() function around the Open() function and it will keep the Excel workbooks that do not have the correct sheet name from erroring out.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dir = Pick Directory( "Select a directory" );
//get all file names under the folder
files = Files In Directory( dir, Recursive );

nfiles = N Items( files );
For( i = 1, i &amp;lt;= N Items( files ), i++,
	fullfile = dir || files[i];
	dt = "";
	Try(
		dt = Open(
			fullfile,
			Worksheets( "Intensity" ),
			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( 1 ),
				Data Starts on Row( 2 ),
				Data Starts on Column( 1 ),
				Data Ends on Row( 0 ),
				Data Ends on Column( 0 ),
				Replicated Spanned Rows( 1 ),
				Replicated Spanned Headers( 0 ),
				Suppress Hidden Rows( 1 ),
				Suppress Hidden Columns( 1 ),
				Suppress Empty Columns( 1 ),
				Treat as Hierarchy( 0 ),
				Multiple Series Stack( 0 ),
				Import Cell Colors( 0 ),
				Limit Column Detect( 0 ),
				Column Separator String( "-" )
			)
		)
	);
	If( dt != "",
		dt &amp;lt;&amp;lt; New Column( "AbbCon1", character, width( 8 ), &amp;lt;&amp;lt;set each value( files[i] ) );
		If( i == 1,
			(dt1 = dt ; dt1 &amp;lt;&amp;lt; Set name( "Tem" ))
		);
		If( i &amp;gt; 1,
			dt1 &amp;lt;&amp;lt; Concatenate( dt, "Append to first table" );
			dt &amp;lt;&amp;lt; closewindow;
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jul 2024 21:50:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP14-How-can-i-import-multi-excel-files-with-defined-sheet/m-p/773728#M95504</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-17T21:50:52Z</dc:date>
    </item>
  </channel>
</rss>

