<?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: Select a block of cells based upon a condition in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905632#M106399</link>
    <description>&lt;P&gt;txnelson&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's brilliant, and really close!&amp;nbsp; It selects the entire rows but I'd like to constrain it to cells in&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;:theColumn&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Oct 2025 13:00:17 GMT</pubDate>
    <dc:creator>SpannerHead</dc:creator>
    <dc:date>2025-10-02T13:00:17Z</dc:date>
    <item>
      <title>Select a block of cells based upon a condition</title>
      <link>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905465#M106386</link>
      <description>&lt;P&gt;I would like to select a data table cell containing a specific string and any populated rows in the same column below the string until I reach an empty cell?&amp;nbsp; If Value were the text, I'd like to grab the ones below that.&amp;nbsp; Can't immediately think how to do that.&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="SpannerHead_0-1759356881179.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/84124iC6868657C1D568A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpannerHead_0-1759356881179.png" alt="SpannerHead_0-1759356881179.png" /&gt;&lt;/span&gt;&amp;nbsp;to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SpannerHead_1-1759356950154.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/84126i771B98CFDBAE6155/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpannerHead_1-1759356950154.png" alt="SpannerHead_1-1759356950154.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 22:17:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905465#M106386</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-10-01T22:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select a block of cells based upon a condition</title>
      <link>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905479#M106387</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();

flag=0;
for each row(
	If(:theColumn == "Value", flag=1,
		:theColumn == "", flag=0
	);
	If(flag==1, dt&amp;lt;&amp;lt;select rows(Row()))
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Oct 2025 23:58:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905479#M106387</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-10-01T23:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select a block of cells based upon a condition</title>
      <link>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905632#M106399</link>
      <description>&lt;P&gt;txnelson&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's brilliant, and really close!&amp;nbsp; It selects the entire rows but I'd like to constrain it to cells in&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;:theColumn&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 13:00:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905632#M106399</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-10-02T13:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select a block of cells based upon a condition</title>
      <link>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905637#M106401</link>
      <description>&lt;P&gt;txnelson&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Small tweak got me there.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();

flag=0;
for each row(
	If(:theColumn == "Value", flag=1,
		:theColumn == "", flag=0
	);
	If( flag==1, dt &amp;lt;&amp;lt; select rows(Row()))
);

dt &amp;lt;&amp;lt; Select Columns(:theColumn);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Oct 2025 13:17:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-a-block-of-cells-based-upon-a-condition/m-p/905637#M106401</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-10-02T13:17:57Z</dc:date>
    </item>
  </channel>
</rss>

