數據表中的條件格式你好,
我正在嘗試對列應用條件公式以應用單元格顏色,但我無法獲得成功的結果。
有什麼建議怎麼做嗎?我相信我在這裡使用了錯誤的公式。
例子:
列
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() )
)
);
