<?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: Multiple excel file import, extracting data from specific sheet in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678105#M86450</link>
    <description>&lt;P&gt;use filesindirectory() with the recursive option; then process the list to identify the file of interest.&lt;/P&gt;
&lt;P&gt;use the excel wizard to open a sample file; save the script from the source script in the opened table.&lt;/P&gt;
&lt;P&gt;combine that with something like &lt;LI-MESSAGE title="Concatenate data tables" uid="82457" url="https://community.jmp.com/t5/JSL-Cookbook-Archived/Concatenate-data-tables/m-p/82457#U82457" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; (or any of the other similar scripts from pre-MFI days...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP 17 does not have the excel support for anything but the simplest case in MultipleFileImport (yet).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 13:44:58 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2023-09-15T13:44:58Z</dc:date>
    <item>
      <title>Multiple excel file import, extracting data from specific sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678056#M86447</link>
      <description>&lt;P&gt;Dear expert JMP users,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a lot of data files generated by an instrument that I've used - each one is consistent in format but they are all in individual sub-folders and each folder contains other files that are not of interest.&lt;/P&gt;&lt;P&gt;Is there a way of writing a script (I'm completely new to JMP scripting) to look in all sub-folders of a given directory, search for excel files ending in ' infos.xlsx', and extracting the data from the 13th row and columns 3 to 25 of a worksheet called "Datas", and appending the full filename of each file to each data row??&lt;/P&gt;&lt;P&gt;Please help, I've got 600 files to process!!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 12:14:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678056#M86447</guid>
      <dc:creator>JMPinthePool</dc:creator>
      <dc:date>2023-09-15T12:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple excel file import, extracting data from specific sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678105#M86450</link>
      <description>&lt;P&gt;use filesindirectory() with the recursive option; then process the list to identify the file of interest.&lt;/P&gt;
&lt;P&gt;use the excel wizard to open a sample file; save the script from the source script in the opened table.&lt;/P&gt;
&lt;P&gt;combine that with something like &lt;LI-MESSAGE title="Concatenate data tables" uid="82457" url="https://community.jmp.com/t5/JSL-Cookbook-Archived/Concatenate-data-tables/m-p/82457#U82457" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; (or any of the other similar scripts from pre-MFI days...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP 17 does not have the excel support for anything but the simplest case in MultipleFileImport (yet).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 13:44:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678105#M86450</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-09-15T13:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple excel file import, extracting data from specific sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678113#M86451</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/39452"&gt;@JMPinthePool&lt;/a&gt;&amp;nbsp;Just noticed &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15287"&gt;@Feli&lt;/a&gt;&amp;nbsp; has a script close to what you need &lt;A href="https://community.jmp.com/t5/JSL-Cookbook-Archived/Concatenate-data-tables/tac-p/328226/highlight/true#M103" target="_blank"&gt;https://community.jmp.com/t5/JSL-Cookbook-Archived/Concatenate-data-tables/tac-p/328226/highlight/true#M103&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 13:55:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678113#M86451</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-09-15T13:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple excel file import, extracting data from specific sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678116#M86452</link>
      <description>&lt;P&gt;Thanks - that does look close...&lt;/P&gt;&lt;P&gt;I'm comfortable with setting the 'worksheet settings' as i need them, but that snippet on it's own doesn't seem to run - what do i need to do to make it run properly??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 14:10:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678116#M86452</guid>
      <dc:creator>JMPinthePool</dc:creator>
      <dc:date>2023-09-15T14:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple excel file import, extracting data from specific sheet</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678135#M86454</link>
      <description>&lt;P&gt;It fits back together with the original code; &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15287"&gt;@Feli&lt;/a&gt;&amp;nbsp; was just showing how to modify the open. You'll want to use the wizard to interactively open one file, then grab the similar looking open(...) and replace the original open that was for JMP tables with yours for excel files. You'll also need to make some tweaks for the recursive option; without recursive, FilesInDirectory() returns filenames that have to be prefixed with the file path. With recursive, it might just work, but the filenames now include a prefix of a partial pathname. the show() function will print to the log to help you figure it out.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;show(filename, path||filename);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;for example, might show where a missing or doubled \ or / gets into a path...&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 14:46:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-excel-file-import-extracting-data-from-specific-sheet/m-p/678135#M86454</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-09-15T14:46:42Z</dc:date>
    </item>
  </channel>
</rss>

