简体   繁体   English

根据单元格相对于另一个单元格的值格式化单元格

[英]Format a cell based on its value relative to that of another cell

I am trying to conditionally format an Excel spread sheet. 我试图有条件地格式化Excel电子表格。 I have two columns J and K with 5 rows 10, 11, 12, 13, 14 and 15. I want to make it so that if K10 is greater than J10 it turns green, if K11 is greater than J11 it turns green etc. 我有两列J和K,其中5行分别是10、11、12、13、14和15。我要使它成为,如果K10大于J10则变为绿色,如果K11大于J11则变为绿色,等等。

so in effect:if Kn > Jn for values of n between 10 and 15 所以实际上:如果Kn> Jn对于n的值介于10和15之间

What is the syntax in Excel to make this happen? Excel中实现此目的的语法是什么?

Please select J10:K15 starting with J10 then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true: : 请选择以J10开头的J10:K15,然后选择“首页”>“样式-条件格式,新规则...”, 使用公式确定要格式化的单元格,在此公式为true的情况下设置值的 格式 ::

=K10>J10

Format... , select green, OK, OK. 格式... ,选择绿色,确定,确定。

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

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