<?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 select individual cell based on condition? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20336#M18520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/people/davyvy"&gt;davyvy&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One approach is to simply clear the value of the cell and replace it with missing value (essentially same as delete). So..&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo;"&gt;:Value1 &amp;lt;&amp;lt; &lt;SPAN style="color: #011993;"&gt;Set Each Value&lt;/SPAN&gt;( &lt;SPAN style="color: #032ce4;"&gt;If&lt;/SPAN&gt;( Value1[ ] == -&lt;SPAN style="color: #009193;"&gt;99&lt;/SPAN&gt;, &lt;SPAN style="color: #009193;"&gt;.&lt;/SPAN&gt;, Value1[ ] ) );&lt;/P&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo;"&gt;:Value2 &amp;lt;&amp;lt; &lt;SPAN style="color: #011993;"&gt;Set Each Value&lt;/SPAN&gt;( &lt;SPAN style="color: #032ce4;"&gt;If&lt;/SPAN&gt;( Value2[ ] == -&lt;SPAN style="color: #009193;"&gt;99&lt;/SPAN&gt;, &lt;SPAN style="color: #009193;"&gt;.&lt;/SPAN&gt;, Value2[ ] ) );&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've found that Set Each Value is quite fast. I ran a&amp;nbsp; test on a 5 column, 6.6M row table and each of the operations above completed in ~2s.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2016 09:00:57 GMT</pubDate>
    <dc:creator>Phil_Brown</dc:creator>
    <dc:date>2016-09-12T09:00:57Z</dc:date>
    <item>
      <title>How to select individual cell based on condition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20334#M18518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to select individual cell instead of entire rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table below, I need to select the two -99 cells under Value1 and Value2 column, and delete them. Can someone help? When I used select where, the entire row is selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;test1&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 48pt;" width="64"&gt;Value1&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 48pt;" width="64"&gt;test2&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 48pt;" width="64"&gt;Value2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-99&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-99&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;443&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;-88&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;234&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;77&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-76&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;65&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2016 09:07:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20334#M18518</guid>
      <dc:creator>davyvy</dc:creator>
      <dc:date>2016-09-11T09:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to select individual cell based on condition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20335#M18519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Selecting a single cell, in the context of "Select Where" isn't really available.&amp;nbsp; But addressing a single cell can be done and then the cell value can be changed, or the cell color can be changed.&amp;nbsp; Here is an example of how to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Names Default to Here(1);&lt;/P&gt;&lt;P&gt;dt=current data table();&lt;/P&gt;&lt;P&gt;dt:Value 2 &amp;lt;&amp;lt; color cells("Red", dt&amp;lt;&amp;lt;get rows where(dt:Value 2 == -99));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2016 13:37:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20335#M18519</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-09-11T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to select individual cell based on condition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20336#M18520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/people/davyvy"&gt;davyvy&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One approach is to simply clear the value of the cell and replace it with missing value (essentially same as delete). So..&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo;"&gt;:Value1 &amp;lt;&amp;lt; &lt;SPAN style="color: #011993;"&gt;Set Each Value&lt;/SPAN&gt;( &lt;SPAN style="color: #032ce4;"&gt;If&lt;/SPAN&gt;( Value1[ ] == -&lt;SPAN style="color: #009193;"&gt;99&lt;/SPAN&gt;, &lt;SPAN style="color: #009193;"&gt;.&lt;/SPAN&gt;, Value1[ ] ) );&lt;/P&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo;"&gt;:Value2 &amp;lt;&amp;lt; &lt;SPAN style="color: #011993;"&gt;Set Each Value&lt;/SPAN&gt;( &lt;SPAN style="color: #032ce4;"&gt;If&lt;/SPAN&gt;( Value2[ ] == -&lt;SPAN style="color: #009193;"&gt;99&lt;/SPAN&gt;, &lt;SPAN style="color: #009193;"&gt;.&lt;/SPAN&gt;, Value2[ ] ) );&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've found that Set Each Value is quite fast. I ran a&amp;nbsp; test on a 5 column, 6.6M row table and each of the operations above completed in ~2s.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:00:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20336#M18520</guid>
      <dc:creator>Phil_Brown</dc:creator>
      <dc:date>2016-09-12T09:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to select individual cell based on condition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20337#M18521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just in case you were looking for a non-scripting approach, you could use search and replace (Ctrl+F), or you could use Column Properties and set -99 as a missing value code. If you use the search option, be sure to leave the Replace With box empty (i.e no space). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:12:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20337#M18521</guid>
      <dc:creator>jerry_cooper</dc:creator>
      <dc:date>2016-09-12T16:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to select individual cell based on condition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20338#M18522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alternatively, you can use the recode option to change the -99 to missing values or whatever value you want. just right click the column from the column list on the left and select recode. the rest is self explanatory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:12:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-individual-cell-based-on-condition/m-p/20338#M18522</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2016-09-12T17:12:29Z</dc:date>
    </item>
  </channel>
</rss>

