<?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: Conditional Formatting Columns in a Table Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67957#M34735</link>
    <description>&lt;P&gt;Hello again. Sorry for all the reply postings. I used the code (my first time) and it worked like a charm! Thank you. I will need to research this code so I understand what it is doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 21:19:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-14T21:19:38Z</dc:date>
    <item>
      <title>Conditional Formatting Columns in a Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67549#M34647</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data table with dozens of z-scores derived from distribution stats, therefore the scores may vary from -4 to 4 for example. I want to highlight those numbers: less than -2.1 and greater than +2, basically anything score indicating a value is more than 2 standard deviations. (see screen shot attached)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have looked a number of posts and not found the right approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;-Lucas&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen shot conditional formatting.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12017i0CBEA420D97A447E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="screen shot conditional formatting.png" alt="screen shot conditional formatting.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:47:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67549#M34647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Columns in a Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67558#M34651</link>
      <description>&lt;P&gt;Lucas,&lt;/P&gt;&lt;P&gt;What are you trying to highlight: points in a graph, or highlighted cells in a table, or ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want your graph symbols to have special markers and colors and your table table is unstacked,&amp;nbsp;then it will be difficult, since JMP symbols and colors are by row and not by cell.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 619px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11970i9124D1A93D2A8F1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;However, if the data is stacked,&amp;nbsp; then it is simple.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 504px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11971i50F97192CD0679DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Conditional formatting rules are for reports. See the text changes for p-values in the test of the mean for weight=55 for Big Class data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 454px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11972iE074AB987A5005A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want to color the cells of your table and you have numerous columns, it is easier with a script. Please expalin what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11973i231BAEC155272AE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 06:36:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67558#M34651</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-11T06:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Columns in a Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67561#M34652</link>
      <description>Thank you for the reply.&lt;BR /&gt;&lt;BR /&gt;I am simply trying to highlight those cells with a particular value range. I have tried the gradient option but that colors each cell along a range.&lt;BR /&gt;&lt;BR /&gt;My data exist of z-score that measure how many standard deviations a sample is from a group mean. So a z-score of 4 means that sample variable (elemental concentrations in obsidian parts per million in my work) is four standard deviations from a group mean. Because that sample is an outlier it should be part of another group. My limit is 2 standard deviations to be part of a group. The z-scores I generate by saving the "standardized" to my table after plotting the distributions have negative and positive numbers, thus I want to highlight those cells that are less than -2 and greater than +2. In other words, the only cells that remain unhighlighted are between - 2 and 2.&lt;BR /&gt;&lt;BR /&gt;Sorry for the confusion in my post. The title of my post was overwritten by an auto fill option somehow. It should have read "applying conditional formatting in a cell."&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;-Lucas&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Aug 2018 17:12:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67561#M34652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-11T17:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Columns in a Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67562#M34653</link>
      <description>&lt;DIV class="PlainText"&gt;Thank you for the reply.&lt;/DIV&gt;&lt;DIV class="PlainText"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="PlainText"&gt;I am simply trying to highlight those cells with a particular value range. Like what the last image you posted. I have tried the gradient option but that colors each cell a long a range. I am new to JMP so scripting might be a small challenge for me, but I want to learn.&lt;/DIV&gt;&lt;DIV class="PlainText"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="PlainText"&gt;My data exist of z - score that measure h ow many standard deviations a sample is from a group mean . So a z-score o f 4 means that sample variable (elemental concentrations i n obsidian parts per mill ion i n my work) is four standard deviations from a group mean . Because that sample is an outlier it should be part of another group . My limit is 2 standard deviations to be part of a group. The z-scores I generate by saving the " standardized " to my table after plotting the distributions have negative and positive numbers, thus I want to highlight t hose cells that are less than -2 and greater than +2 . In other words, the only cells that remain unhighlighted are between - 2 and 2.&lt;BR /&gt;&lt;BR /&gt;Sorry for the confusion in my post. The title of my post was overwritten by an auto fill option somehow. It should have read "applying conditional formatting in a cell."&lt;/DIV&gt;&lt;DIV class="PlainText"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="PlainText"&gt;Thank you,&lt;BR /&gt;- Lucas&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Aug 2018 17:26:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67562#M34653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-11T17:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Columns in a Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67564#M34654</link>
      <description>&lt;P&gt;Lucas,&lt;/P&gt;&lt;P&gt;See the attached table. You can do this via the GUI by following these steps for each zscore column:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select the target column and make sure no other columns are selected&lt;/LI&gt;&lt;LI&gt;Main Menu &amp;gt; Rows &amp;gt; Row Selection &amp;gt; Select&amp;nbsp; Where&amp;nbsp; [same as Ctrl+Shift +W]&lt;/LI&gt;&lt;LI&gt;Create the criteria: this will be an Or condition [where any condition is met] and press OK. See picture&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Conditional Row Selection - Or condition" style="width: 688px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11974iFCBF289D2F6CD7D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Conditional Row Selection - Or condition" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Conditional Row Selection - Or condition&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Right click ( be careful) and select Color Cells and choose your color.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Otherwise, run a script like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = current data table();

cdlg = Column Dialog(
    Text Box("Select all columns to be higlighted"),
	exY = ColList( "Y", Min Col( 1 ), Data Type( "Numeric" ) ),
);

If (cdlg["Button"] !=1, Throw(),
   cnames = cdlg["exY"]
 );

For(i =1, i&amp;lt;=nitems(cnames), i++,
  ccol = column(dt, cnames[i]);
  _idx = dt &amp;lt;&amp;lt; get rows where(ccol[]&amp;gt;2 | ccol[] &amp;lt; -2);  //set your criteria	
  ccol &amp;lt;&amp;lt; color cells(RGB Color([255,128,0]),_idx) 	    //use "yellow" a color name or RGB number
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note, I kept this simple, since I do not know your scripting skills: the color and the criteria is hardcoded and added a simple column selector.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open the attached table and open the attached script and run the script by pressing the the Run Script icon or Ctrl+R or right click in teh script window and select Run Script.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 18:35:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67564#M34654</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-11T18:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Columns in a Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67943#M34730</link>
      <description>&lt;P&gt;Thank you (sorry for my delay).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do I right click to select the color?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Lucas&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:58:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67943#M34730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T19:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Columns in a Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67944#M34731</link>
      <description>&lt;P&gt;Hi. Okay. I understand where I right click. Ignore the last post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to highlight just the cells in multiple columns that meet my conditions. I do not want to highlight the row. I have more than 5 z-scores.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:02:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67944#M34731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T20:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Columns in a Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67957#M34735</link>
      <description>&lt;P&gt;Hello again. Sorry for all the reply postings. I used the code (my first time) and it worked like a charm! Thank you. I will need to research this code so I understand what it is doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 21:19:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-Formatting-Columns-in-a-Table-Box/m-p/67957#M34735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T21:19:38Z</dc:date>
    </item>
  </channel>
</rss>

