<?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 find row and column (cell) that matches a value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-find-row-and-column-cell-that-matches-a-value/m-p/271602#M52876</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, thanks for the response.&amp;nbsp; The column names are not indicative of the content, they are really screwy tables.&amp;nbsp; That is why i have to locate where the actual data starts, close the table then re-import the full table with the correct row identifying the columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your comment though made me realize that i can grab all the column names then do a loop through each column and if it finds the matching cell value then assign the row value to my variable and exit the loop.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2020 14:11:24 GMT</pubDate>
    <dc:creator>SamKing</dc:creator>
    <dc:date>2020-06-09T14:11:24Z</dc:date>
    <item>
      <title>How to find row and column (cell) that matches a value</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-row-and-column-cell-that-matches-a-value/m-p/271473#M52844</link>
      <description>&lt;P&gt;I have tables that are generated and the format is different from time to time and it breaks my script.&amp;nbsp; The tables are massive and so the way i handle my loops is that i import the first 100 rows and 5 columns, for speed.&amp;nbsp; Then i search a particular column for a keyword to help me know where which row the real data starts.&amp;nbsp; I close the file then reopen with that variable identifying the column header and data start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, as mentioned above about 1% of the files are dorked up and have extra columns at the beginning and sometimes a few hundred random rows so it trips up my script.&amp;nbsp; I was thinking that if I can search the whole abreviated table for my keyword then i can get around it but i'm unsure how to search multiple columns at once, especially when the column names change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the method that I currently use to identify my row, looking in a particular column.&amp;nbsp; How do i open this up to search columns 1-10 or even the whole table?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//nr1 becomes the column headers and nr2 becomes the first row of data when i reopen the full table.&lt;BR /&gt;nr1 = dt &amp;lt;&amp;lt; get rows where( :Col1 == "customparameter" );
nr2 = nr1 + 1;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:14:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-row-and-column-cell-that-matches-a-value/m-p/271473#M52844</guid>
      <dc:creator>SamKing</dc:creator>
      <dc:date>2023-06-10T23:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to find row and column (cell) that matches a value</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-row-and-column-cell-that-matches-a-value/m-p/271520#M52858</link>
      <description>&lt;P&gt;You can refer to columns in a data table by number&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; select where( column(dt, 3 ) == "Top" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or you can easily retrieve the column names in a data table, and refer to those names&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colNames = dt &amp;lt;&amp;lt; get column names;
dt &amp;lt;&amp;lt; select where( column( dt, colNames[3] == "Top" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so once you have extracted you sample, you can find the names of the columns or just search by column number.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 00:36:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-row-and-column-cell-that-matches-a-value/m-p/271520#M52858</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-09T00:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to find row and column (cell) that matches a value</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-row-and-column-cell-that-matches-a-value/m-p/271602#M52876</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, thanks for the response.&amp;nbsp; The column names are not indicative of the content, they are really screwy tables.&amp;nbsp; That is why i have to locate where the actual data starts, close the table then re-import the full table with the correct row identifying the columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your comment though made me realize that i can grab all the column names then do a loop through each column and if it finds the matching cell value then assign the row value to my variable and exit the loop.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 14:11:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-row-and-column-cell-that-matches-a-value/m-p/271602#M52876</guid>
      <dc:creator>SamKing</dc:creator>
      <dc:date>2020-06-09T14:11:24Z</dc:date>
    </item>
  </channel>
</rss>

