<?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 How to set row in which data starts based on keyword in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495509#M73406</link>
    <description>&lt;P&gt;Hi, I'm trying to adapt this script:&lt;/P&gt;&lt;PRE&gt;// Import Excel file: file.xls
// → Data Table( "Results" )
Open(
	"$DESKTOP/JMP test/file.xls",
	Worksheets( "Results" ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 51 ),
		Data Starts on Row( 52 ),
		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( "-" )
	)
);&lt;/PRE&gt;&lt;P&gt;however instead of setting these parameters&lt;/P&gt;&lt;PRE&gt;		Headers Start on Row( 51 ),
		Data Starts on Row( 52 ),&lt;/PRE&gt;&lt;P&gt;I would like to check for the keyword "Start" in column 1, the row where "Start" is would be the Headers and the one after would be where the data starts.&lt;/P&gt;&lt;P&gt;Is there an easy way to do this?&lt;BR /&gt;I am putting together a script that opens several spreadsheets that are similar and then stacks them, but the row at which the data starts varies from spreadsheet to spreadsheet as they are automatically produced by lab equipment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 17:00:14 GMT</pubDate>
    <dc:creator>Agustin</dc:creator>
    <dc:date>2023-06-09T17:00:14Z</dc:date>
    <item>
      <title>How to set row in which data starts based on keyword</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495509#M73406</link>
      <description>&lt;P&gt;Hi, I'm trying to adapt this script:&lt;/P&gt;&lt;PRE&gt;// Import Excel file: file.xls
// → Data Table( "Results" )
Open(
	"$DESKTOP/JMP test/file.xls",
	Worksheets( "Results" ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 51 ),
		Data Starts on Row( 52 ),
		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( "-" )
	)
);&lt;/PRE&gt;&lt;P&gt;however instead of setting these parameters&lt;/P&gt;&lt;PRE&gt;		Headers Start on Row( 51 ),
		Data Starts on Row( 52 ),&lt;/PRE&gt;&lt;P&gt;I would like to check for the keyword "Start" in column 1, the row where "Start" is would be the Headers and the one after would be where the data starts.&lt;/P&gt;&lt;P&gt;Is there an easy way to do this?&lt;BR /&gt;I am putting together a script that opens several spreadsheets that are similar and then stacks them, but the row at which the data starts varies from spreadsheet to spreadsheet as they are automatically produced by lab equipment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:00:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495509#M73406</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2023-06-09T17:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set row in which data starts based on keyword</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495536#M73407</link>
      <description>&lt;P&gt;There is not a "simple" way to do this, however, it is not overly complicated either.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Each table will have to be read twice
&lt;OL&gt;
&lt;LI&gt;First, open the table indicating there is only one column, and it is delimited by the Line Feed character at the end of each line.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Loop through the data table until the word "Start" is found.
&lt;OL&gt;
&lt;LI&gt;Save the Row number&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Delete the current data table&lt;/LI&gt;
&lt;LI&gt;Reopen the data table, reading it using your above parameters, with the Header Start and Data Start values set based upon the saved Row Number&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 30 May 2022 15:51:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495536#M73407</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-05-30T15:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set row in which data starts based on keyword</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495567#M73408</link>
      <description>&lt;P&gt;I'm only just starting using JSL and don't really know how to do that. Is there a documentation guide for JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 16:13:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495567#M73408</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2022-05-30T16:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to set row in which data starts based on keyword</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495640#M73410</link>
      <description>&lt;P&gt;The Scripting Guide, which documents JSL(Jmp Scripting Language) is available in the JMP Documentation Library, found under&amp;nbsp; the Help pull down menu.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 20:02:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-row-in-which-data-starts-based-on-keyword/m-p/495640#M73410</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-05-30T20:02:05Z</dc:date>
    </item>
  </channel>
</rss>

