数据表中的条件格式你好,
我正在尝试对列应用条件公式以应用单元格颜色,但我无法获得成功的结果。
有什么建议怎么做吗?我相信我在这里使用了错误的公式。
例子:
列
UV 紫外线拒绝
0.15 0.15
公式:如果( :UV == :UV 拒绝,
颜色(“红色”),
“白色的”
)
想法是,如果值等于另一列中的值,JMP 会以红色突出显示单元格
提前致谢
Re: 数据表中的条件格式我仍然对您指的“意思”感到困惑?但是,下面的代码猜测了一种可能的比较方法,并根据它设置了与平均值的最大差异的单元格。
Names Default To Here( 1 );
// Open the sample data table
dt = Open( "$SAMPLE_DATA/blood pressure.jmp" );
// Loop across rows to find what cells have the max values
For Each Row(
// Find the mean for the target columns in the row
rowMean = Mean( :BP 8M, :BP 12M, :BP 6M, :BP 8W, :BP 12W, :BP 6W, :BP 8F, :BP 12F, :BP 6F );
// Initialize the memory variables to hold the max value and the column the max value is in
MaxVal = 0;
Col = 0;
// Loop across the columns in question and find the max value
For( i = 1, i <= 9, i++,
If( Abs( Column( i + 2 )[Row()] - rowMean ) > MaxVal,
MaxVal = Abs( Column( i + 2 )[Row()] - rowMean );
Col = i + 2;
)
);
// Set the cell color for the cell that has the max value
Column( col ) << color cells( "red", Row() );
);

Re: 数据表中的条件格式我正在运行 JMP 14
你正在使用的代码不要误会我的意思。 问题是我正在寻找一种解决方案,它可以让我区分 3 个数据列中的哪一列与平均值最远(视觉上)
如果我含糊不清,我真的很抱歉。
Re: 数据表中的条件格式1. 您运行的是什么版本的 JMP?
2. 好像不行是什么意思?它在 JMP 12、13 和 14 中运行时没有错误。
Re: 数据表中的条件格式它似乎确实有效,但在我的例子中,我有 3 列非常相似的 ei 权重数据。 我想突出显示包含值 > 20% 的平均值的三列中的一列
Re: 数据表中的条件格式当我尝试从列公式设置单元格颜色时,公式处理器抱怨,但是,下面是一个简单的脚本。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "Reject", character );
For Each Row(
If( :weight > 120,
:reject << color cells( "red", Row() ),
:reject << color cells( "white", Row() )
)
);
