简体   繁体   English

Excel条件格式(范围与单个单元格)

[英]Excel Conditional Formatting (Range vs single cell)

I am trying to change the color of the cells in a row, if one of those cells is greater than the other cells in that specific row. 如果这些单元格中的一个大于该特定行中的其他单元格,我将尝试更改该行中单元格的颜色。

So under amount, there will be amount and each person will put in their own amounts under their initials, I want the person who puts the most to turn green. 因此,在数量不足的情况下,将有数量,每个人都将自己的名字放在首字母缩写下,我希望投入最多的人变成绿色。 Is this possible with a range like I4:K4 or will I have to go through each cell and have a different rule for each cell. 是否可以在I4:K4之类的范围内进行操作?还是我必须遍历每个单元格并对每个单元格使用不同的规则。

Highlight the range I4:K4 then in Conditional Formatting | 突出显示范围I4:K4,然后在条件格式| Use a formula put in the following 使用下面的公式

=I4=MAX($I4:$K4)

and choose a fill colour with the Format button. 然后使用“格式”按钮选择填充颜色。 Then as it is extended across it will apply to any cells (could be more than one) which are equal to the maximum amount. 然后,随着它的扩展,它将应用于等于最大数量的任何单元(可能大于一个)。

You can use the Conditional Formatting dialog, and select the " Use formula to determine which cell to format " option. 您可以使用“ 条件格式设置”对话框,然后选择“ 使用公式确定要格式化的单元格 ”选项。 There you could use something like the formula I4=MAX($I4:$K4) to determine which cell to format green. 在那里,您可以使用公式I4=MAX($I4:$K4)来确定要格式化绿色的单元格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM