简体   繁体   中英

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

I am trying to conditionally format an Excel spread sheet. 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.

so in effect:if Kn > Jn for values of n between 10 and 15

What is the syntax in Excel to make this happen?

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: :

=K10>J10

Format... , select green, OK, OK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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