<?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: excel import cell colors in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/excel-import-cell-colors/m-p/58502#M32357</link>
    <description>&lt;P&gt;The only way that I know to retrieve&amp;nbsp;the Cell Colors is to revrieve the Script for the column, as you stated.&amp;nbsp; I have not found any change for this in JMP 14.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 02:57:54 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-05-29T02:57:54Z</dc:date>
    <item>
      <title>excel import cell colors</title>
      <link>https://community.jmp.com/t5/Discussions/excel-import-cell-colors/m-p/58497#M32352</link>
      <description>&lt;P&gt;I have used import cell colors in the excel import because I have clients who color cells that should be included or excluded.&amp;nbsp; The colors import fine but I havent found an easy way to access the cell's color state in order to exclude those cells.&amp;nbsp; The only workaround I've found is to get the columns script and parse out the row numbers.&amp;nbsp; I'm afraid that this might not be very reliable.&amp;nbsp; Are there any functiosn to read the cell's color directly?&amp;nbsp; Note that the import cell colors does not change the row states or set any color properties for the column.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open(
	"Data.xlsx",
	Worksheets( "Sheet1" ),
	Use for all sheets( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 2 ),
		Data Starts on Row( 3 ),
		Data Starts on Column( 1 ),
		Data Ends on Column( 1 ),
		Import Cell Colors( 1 )
	)
);
Rlist = {};
t = arg(arg((:SubjectID &amp;lt;&amp;lt; get script),4),1);
for(i=1,i&amp;lt;=narg(t),i++,insert into(Rlist, arg(arg(t,i),2))); //the first arg is the colour the second the list of rows
dt1 = dt &amp;lt;&amp;lt; subset(rows(Rlist));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 May 2018 23:04:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/excel-import-cell-colors/m-p/58497#M32352</guid>
      <dc:creator>ghartel</dc:creator>
      <dc:date>2018-05-28T23:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: excel import cell colors</title>
      <link>https://community.jmp.com/t5/Discussions/excel-import-cell-colors/m-p/58502#M32357</link>
      <description>&lt;P&gt;The only way that I know to retrieve&amp;nbsp;the Cell Colors is to revrieve the Script for the column, as you stated.&amp;nbsp; I have not found any change for this in JMP 14.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 02:57:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/excel-import-cell-colors/m-p/58502#M32357</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-05-29T02:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: excel import cell colors</title>
      <link>https://community.jmp.com/t5/Discussions/excel-import-cell-colors/m-p/58509#M32359</link>
      <description>&lt;P&gt;This is just an FYI for readers of the blog, not as adept at peeling the arguments of an expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need to get the row numbers (and color) of colored cells in a column of any JMP data table, Color Cells is not the 4th argument if there are other properties associated with the column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the sample data table Big Class.jmp with column age with 2 sets of colored cells (red and blue). And below is a function that can be applied to any column with an example applied to the column :age.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;CellColors = Function({colnme}, {ccol, cjsl, i, targ, clr={}, found=0},
 ccol = column(current data table(), colnme);
 cjsl = ccol &amp;lt;&amp;lt; get script;	
 //show(cjsl);
 for(i=1, i&amp;lt;=N Arg(cjsl) &amp;amp; found==0, i++,
 	targ = Arg Expr(cjsl, i);
 	//show(i, HeadName(targ));
 	if(Head Name(targ) == "Color Cells", found=1; )
  );
 for(i=1, i&amp;lt;=N Arg(targ), i++,
  insert into(clr, Arg Expr(targ,i))
 );
 clr
);

clrList = CellColors("age");
show(clrList); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 May 2018 07:27:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/excel-import-cell-colors/m-p/58509#M32359</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-05-29T07:27:26Z</dc:date>
    </item>
  </channel>
</rss>

