Conditional formatting across sheets to highlight a cell based on greater than comparison

天大地大妈咪最大 提交于 2020-04-16 15:56:11

问题


Suppose there are 2 sheets Run1 and Run2 in excel. Both have a column say PassCount. How can we compare PassCount on Run1 and Run2 for greater value such that, if PassCount in Run2 is higher than PassCount from Run1 then Run2 entry should be highlighted in green else it should be red

Run2

image

Run1 Run 1 is exactly the same sheet with different values.

Now, what I need is: If(C3 of sheet Run18 > C3 of sheet Run17) then highlight C3 of Run18 in green else highlight it in red. This will show if the current result is better than the previous result or not.


回答1:


green color:

=COUNTIF(C2, ">"&INDIRECT("Run18!C2"))

red color:

=COUNTIF(C2, "<="&INDIRECT("Run18!C2"))



来源:https://stackoverflow.com/questions/57457627/conditional-formatting-across-sheets-to-highlight-a-cell-based-on-greater-than-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!