<?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: color a cell by formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/810122#M99179</link>
    <description>&lt;P&gt;Thank you so much for the solution.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 13:40:02 GMT</pubDate>
    <dc:creator>SophieGray</dc:creator>
    <dc:date>2024-11-08T13:40:02Z</dc:date>
    <item>
      <title>color a cell by formula</title>
      <link>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/804991#M98283</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a data table in wide format. it has the spec limit.&amp;nbsp; it works fine by doing quality &amp;amp; process -&amp;gt; manage limit -&amp;gt; color out of spec value. The fail value are color using this method. i would like to view it in tall format. See below transposed table.&lt;BR /&gt;The data table are transposed then update with limit (column name with LSL and USL).&amp;nbsp; Label is the parameters, 1 to 20 are for different parts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to color a cell or the value if the reading of the part is &amp;lt; LSL or reading is &amp;gt; USL. can i do it with cols -&amp;gt; formula or does it need JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is JMP 17.&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="CumulativeMean2_0-1728620298068.png" style="width: 697px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69025i732EC8D351888889/image-dimensions/697x61?v=v2" width="697" height="61" role="button" title="CumulativeMean2_0-1728620298068.png" alt="CumulativeMean2_0-1728620298068.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 04:26:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/804991#M98283</guid>
      <dc:creator>CumulativeMean2</dc:creator>
      <dc:date>2024-10-11T04:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: color a cell by formula</title>
      <link>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/805001#M98284</link>
      <description>&lt;P&gt;As you are performing the checks on row level and colors are generally set on column level, I think you will need to utilize JSL. The JSL for that isn't too difficult and if you can provide example data, JMP Community can most likely help you build it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to build the script would be:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get measurement columns into a list/associative array (continuous columns between Label&amp;nbsp; / LSL or columns with just numbers in the name)&lt;/LI&gt;
&lt;LI&gt;Use For Each Row to loop over the table&lt;/LI&gt;
&lt;LI&gt;Compare values on the row to the limits while updating the object created in step one with the rows which should be colored for each column&lt;/LI&gt;
&lt;LI&gt;After you have finished looping of the rows, which to looping over the object created in step 1 and set the colors using &amp;lt;&amp;lt; Color Cells&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 11 Oct 2024 05:06:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/805001#M98284</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-11T05:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: color a cell by formula</title>
      <link>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/805030#M98290</link>
      <description>&lt;P&gt;here is example data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;column "label" is the parameter. each label has unique LSL and USL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 to 20 in column header are different parts. every part has a unique value for each parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example, if row 3, column "1" with reading of "0.37209999561" is out of LSL &amp;amp; USL of (0.070000000298,&amp;nbsp;1), then the&amp;nbsp;"0.37209999561" font color changed to red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 07:54:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/805030#M98290</guid>
      <dc:creator>CumulativeMean2</dc:creator>
      <dc:date>2024-10-11T07:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: color a cell by formula</title>
      <link>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/805042#M98292</link>
      <description>&lt;P&gt;Not the simplest way of doing this, but might work for you. Note that you might have to add extra checks if you have one-sided specification limits&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$DOWNLOADS/Transpose of u4_trimmed.jmp");

cols = dt &amp;lt;&amp;lt; Get Column Names("String");
labelidx = Contains(cols, "Label");
partcols = Remove From(cols, labelidx + 1, Contains(cols, "LSL") - labelidx - 1);

m = J(N Rows(dt), N Items(partcols), 0);

For Each Row(dt,
	m[Row(), 0] = dt[Row(), partcols] &amp;lt; :LSL | dt[Row(), partcols] &amp;gt; :USL
);

For Each({partcol, idx}, partcols,
	color_rows = Loc(m[0, idx]);
	If(N Items(color_rows) &amp;gt; 0,
		Column(dt, partcol) &amp;lt;&amp;lt; Color Cells("Red", color_rows);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2024 08:33:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/805042#M98292</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-11T08:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: color a cell by formula</title>
      <link>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/807655#M98700</link>
      <description>&lt;P&gt;it works. sorry for late response. i was trying to figure it out the script, but it seems like this is going to take more time.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:42:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/807655#M98700</guid>
      <dc:creator>CumulativeMean2</dc:creator>
      <dc:date>2024-10-23T06:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: color a cell by formula</title>
      <link>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/810122#M99179</link>
      <description>&lt;P&gt;Thank you so much for the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 13:40:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/color-a-cell-by-formula/m-p/810122#M99179</guid>
      <dc:creator>SophieGray</dc:creator>
      <dc:date>2024-11-08T13:40:02Z</dc:date>
    </item>
  </channel>
</rss>

