數據表中的條件格式你好,
我正在嘗試對列應用條件公式以應用單元格顏色,但我無法獲得成功的結果。
有什麼建議怎麼做嗎?我相信我在這裡使用了錯誤的公式。
例子:
列
紫外線 紫外線拒絕
0.15 0.15
公式: If( :UV == :UV 拒絕,
顏色(“紅色”),
“白色的”
)
想法是如果值等於另一列中的值,JMP 會以紅色突出顯示單元格
提前致謝
回复:數據表中的條件格式我仍然對您所指的“意思”感到困惑?但是,下面的代碼猜測了一種可能的比較方法,並從中設置了與平均值最大差異的單元格。
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() );
);

回复:數據表中的條件格式我正在運行 JMP 14
您正在使用的代碼不會誤會我的意思。 問題是我正在尋找一種解決方案,可以讓我區分 3 個數據列中的哪一列與平均值最遠(視覺上)
如果我模棱兩可,我真的很抱歉。
回复:數據表中的條件格式1. 您運行的是什麼版本的 JMP?
2. 你的意思是它似乎不起作用?它在 JMP 12、13 和 14 中運行沒有錯誤。
回复:數據表中的條件格式它似乎確實有效,但就我而言,我有 3 列非常相似的 ei 重量數據。 我想突出顯示包含平均值 > 20% 的三列中的一列
回复:數據表中的條件格式當我嘗試從列公式設置單元格顏色時,公式處理器抱怨,但是,下面是一個有效的簡單腳本。
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() )
)
);
