<?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 import Multiple excel files with many tabs into one table in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762715#M94244</link>
    <description>&lt;P&gt;Hi, I am using "import Multiple files" feature to get data from different excel files, my challenge is that only data from the first tab are extracted. I have three more tabs on each file that I would like to get the data from. Is there a way to do that in JMP? appreciate all the help.&lt;/P&gt;&lt;P&gt;AFaiz&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 00:39:48 GMT</pubDate>
    <dc:creator>AFaiz</dc:creator>
    <dc:date>2024-06-06T00:39:48Z</dc:date>
    <item>
      <title>import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762715#M94244</link>
      <description>&lt;P&gt;Hi, I am using "import Multiple files" feature to get data from different excel files, my challenge is that only data from the first tab are extracted. I have three more tabs on each file that I would like to get the data from. Is there a way to do that in JMP? appreciate all the help.&lt;/P&gt;&lt;P&gt;AFaiz&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 00:39:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762715#M94244</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-06-06T00:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762717#M94245</link>
      <description>&lt;P&gt;Using&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
theFiles = multiple file import(
	&amp;lt;&amp;lt;set folder("&amp;lt;path to folder&amp;gt;")
)&amp;lt;&amp;lt;import data&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in JMP 16, JMP 17 and JMP 18, multiple sheet Excel files open all sheets.&amp;nbsp; JMP 15 and earlier only open the first Sheet.&lt;/P&gt;
&lt;P&gt;If you are using JMP 15 or earlier, you can use the Files in Directory() to get all of the files to read, and then loop through using Open() to read in the Excel files and it will read all of the sheets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 01:51:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762717#M94245</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-06T01:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762753#M94258</link>
      <description>&lt;P&gt;thanks a lot! the script worked great as expected. It opened 3x JMP tables because each of the excel files have 3x tabs.&lt;/P&gt;&lt;P&gt;Is there a way to concatenate these files into one? I believe that requires the JMP columns to have the same names, and I am not sure how to do that using JMP scripting. Any recommendations? Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 12:27:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762753#M94258</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-06-06T12:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762757#M94260</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
theFiles = Multiple File Import(
	&amp;lt;&amp;lt;set folder( "&amp;lt;path to folder&amp;gt;" )
) &amp;lt;&amp;lt; import data;

// There is a option that can be specified to the MFI
//    &amp;lt;&amp;lt; Stack Similar Files
// that can be specified, and JMP will stack all files that
// have the same columns. 

// However, the below JSL can be used to Concatenate(Stack) all created
// data tables

// The MFI returns a complete list of all of the data tables created
// The variable in this example that contains that list is the
// variable "theFiles".  It can be used in the Concatenation Platform
// to reference all of the created data tables.
dtfinal = New Table( "Together" );
dtFinal &amp;lt;&amp;lt; concatenate(
	theFiles,
	Append to First Table( 1 ),
	Create Source Column( 1 )
);

// To close the individual files after the concatenation
For Each( {file}, theFiles, Close( file, nosave ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jun 2024 12:52:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762757#M94260</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-06T12:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762966#M94362</link>
      <description>&lt;P&gt;I have added the additional script lines, and I keep getting the error below when trying to run it, is JMP scripting case sensitive? I correct the "f" in dtfinal to dfFinal, but did not help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AFaiz_0-1717978158885.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65028i28F4C4AD3953502F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AFaiz_0-1717978158885.png" alt="AFaiz_0-1717978158885.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 00:10:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762966#M94362</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-06-10T00:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762967#M94363</link>
      <description>&lt;P&gt;I suspect the JSL line just prior to the line&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtfinal = New Table( "Together" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;does not end in a semicolon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without seeing the lines before what you included only lets me guess as to the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 00:33:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/762967#M94363</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-10T00:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/763099#M94407</link>
      <description>&lt;P&gt;I copied the Script again, and it run with no errors.&lt;/P&gt;&lt;P&gt;It doing mostly what is needed, only issue is that the added column that describes where the data point is coming from (the file and Tab) is not correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would like it to create a description column stating where each data point is coming file, something lie "File_Name_Tab_Name". Is there a way to add that to the script?&lt;/P&gt;&lt;P&gt;Appreciate all the help,&lt;/P&gt;&lt;P&gt;Faiz&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 14:06:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/763099#M94407</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-06-11T14:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/764038#M94414</link>
      <description>&lt;P&gt;If you change the MFI to&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
theFiles = Multiple File Import(
	&amp;lt;&amp;lt;set folder( "&amp;lt;path to folder&amp;gt;" )
) &amp;lt;&amp;lt; Set Add File Name Column( 1 )&amp;lt;&amp;lt; import data;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It will create a column that contains the file name.&amp;nbsp; You can then add a new column in the final data table that puts the File Name column together with the Source Table column to get what you need.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 18:06:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/764038#M94414</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-11T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765076#M94453</link>
      <description>&lt;P&gt;The script looks good, the generated file has a new column listing the source file name, but it is not listing the tab name. All the data from the three tabs have the same file name, nothing listed about the tab name. Any other recommendations?&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Faiz&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="AFaiz_0-1718204512929.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65112i7C6E06AE62547245/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AFaiz_0-1718204512929.png" alt="AFaiz_0-1718204512929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 15:02:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765076#M94453</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-06-12T15:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765113#M94458</link>
      <description>&lt;P&gt;If the code you ran specified&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; Set Add File Name Column( 1 )&amp;lt;&amp;lt; import data;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The MFI will create a new column in each table created called "File Name".&amp;nbsp; It contains the name of the Excel workbook.&amp;nbsp; The MFI also gives each data table created a name based upon the&amp;nbsp; workbook name followed by the individual Tab name.&lt;/P&gt;
&lt;P&gt;Therefore, when the Concatenate is run, with the option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Create Source Column( 1 )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;specified, an additional column named "Source Table" is created in the concatenation result table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1718206072451.png" style="width: 686px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65121i9CCD463472ADA724/image-dimensions/686x314?v=v2" width="686" height="314" role="button" title="txnelson_0-1718206072451.png" alt="txnelson_0-1718206072451.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and it contains the workbook name followed by the Tab name.&amp;nbsp; From what I interpreted from your question, that should provide you with the information you need.&amp;nbsp; If you want the data from the 2 column displayed in a different form, such as combined into a single column, all that you need to do is to create a new column with a formula that concatenates the information from the 2 columns together.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 15:33:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765113#M94458</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-12T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765204#M94473</link>
      <description>&lt;P&gt;The problem is that the column with file name and tab name does not get created. there is a File Name column that contains the source file name followed by the data. The source table is incorrect, the same naming is used for data from multiple files/tabs.&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="AFaiz_0-1718215158238.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65126iB8A79D6AE1C14D69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AFaiz_0-1718215158238.png" alt="AFaiz_0-1718215158238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 18:00:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765204#M94473</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-06-12T18:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765216#M94474</link>
      <description>&lt;P&gt;Please provide the following information from this information from 1 of your imported Excel workbooks&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The path directory folder&lt;/LI&gt;
&lt;LI&gt;The file name of the workbook&lt;/LI&gt;
&lt;LI&gt;The names of the Tabs(spreadsheets) in the Excel workbook&lt;/LI&gt;
&lt;LI&gt;The data table names that JMP gave the different data tables after running MFI on the workbook&lt;/LI&gt;
&lt;LI&gt;The values in the column File Name for the data tables created&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 12 Jun 2024 18:23:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765216#M94474</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-12T18:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765236#M94483</link>
      <description>&lt;P&gt;I have attached the script, 2x excel files with multi tabs, and generated table when the script is run.&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Faiz&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:56:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765236#M94483</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-06-12T20:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765285#M94485</link>
      <description>&lt;P&gt;The documentation does not state it, but apparently the default setting for Stack Mode is Stack Similar.&amp;nbsp; When I force it to Table Per File it seems to fix the issues&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;theFiles = Multiple File Import(
	&amp;lt;&amp;lt;set folder( "C:\Users\abderrazzakf\OneDrive - Samtec\Desktop\Script testing\" )
) &amp;lt;&amp;lt; Set Add File Name Column( 1 )&amp;lt;&amp;lt; Set Stack Mode( "Table Per File" )&amp;lt;&amp;lt; import data;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jun 2024 00:27:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765285#M94485</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-13T00:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765349#M94503</link>
      <description>&lt;P&gt;This is working great, now the "Source Table" column lists the file and tab names correctly. Really appreciate all the help.&lt;/P&gt;&lt;P&gt;One last question, not really crucial, is there a way to exclude the data from one of the tabs? I don't really want data from the "Main" tab as it is only listing date and time. Now that I have everything in the same table, I can do some manual cleanup, just wondering if there is a way to add that to the script.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Faiz&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 10:35:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765349#M94503</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-06-13T10:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: import Multiple excel files with many tabs into one table in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765379#M94506</link>
      <description>&lt;P&gt;There are a few ways to do this.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use a Contains() function to search theFiles list and then use Remove From() function to delete the table from the list, which will remove it from the Concatenate operation.&lt;/LI&gt;
&lt;LI&gt;After the Together data table is created, use the Select Where() function to identify the rows in the data table from the Source Table column that you do not want, and then use Delete Rows to delete the selected rows.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 13 Jun 2024 11:27:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/import-Multiple-excel-files-with-many-tabs-into-one-table-in-JMP/m-p/765379#M94506</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-13T11:27:40Z</dc:date>
    </item>
  </channel>
</rss>

