Here is one way to handle the issue:
Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dtSum = dt << Summary(
Group( :age ),
Mean( :height ),
Mean( :weight ),
Freq( "None" ),
Weight( "None" ),
statistics column name format( "column" )
);
// Get the column names of the current columns
sumColNames = dtSum << get column names(string);
// Remove the first 2 columns from the list
remove from( sumColNames, 1, 2 );
// loop across columns finding all cells > 63
For( i=1, i<= N Items( sumColNames ), i++,
// select all rows where cells are above 63
dtSum << select where( as column( dtSum, sumColNames[i]) > 63 );
// Color cells in summary table
as column(dtSum, sumColNames[i]) << Color Cells( red, dtSum << get selected rows );
// Color cells in original table
as column(dt, sumColNames[i]) << Color Cells( red, dt << get selected rows );
)
Jim