简体   繁体   English

Excel条件格式:如果不相等,则突出显示单元格

[英]Excel Conditional Formatting: Highlight cells if not equal

I ran into a problem, where i want to highlight certain cells based on the input from another cell. 我遇到一个问题,我想根据另一个单元格的输入来突出显示某些单元格。 Here is my quick example of what I would like to achive: 这是我想要达到的目标的快速示例:

Highlight A1:A2 IF B1 does NOT contain the word " Reactor " 选中A1:A2 IF B1确实NOT包含“ Reactor

This is what is used and it did not work: 这是所使用的,但不起作用:

=IF(B1<>(search("Reactor",B1),"",""))

Any ideas how to overcome this little problem?Thank you! 有什么办法可以解决这个小问题吗?谢谢!

A1 will be highlighted when: 在以下情况下,A1将突出显示:

=NOT(IFERROR(SEARCH("reactor",B1)>0,FALSE))

在此处输入图片说明

Probably this can be written in more beautiful way... But it works.. 也许可以用更漂亮的方式来写...但是它可以工作。

If you want more than one cell (A1:A2) to be triggered by a single cell (B1) you should anchor B1 (here B$1). 如果您希望一个单元格(B1)触发多个单元格(A1:A2),则应锚定B1(此处为B $ 1)。

Since if SEARCH fails it will respond with an error, you should be able to apply: 由于如果SEARCH失败,它将返回一个错误,因此您应该可以申请:

=ISERROR(SEARCH("Reactor",B$1))

having selected A1:A2 first (or making that your Applies to range). 首先选择A1:A2(或使您适用于范围)。

暂无
暂无

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

相关问题 Excel条件格式-突出显示之间的空白单元格 - Excel Conditional Formatting - Highlight blank cells between 使用Excel VBA条件格式时如何突出显示单元格? - How to highlight cells when using Excel VBA conditional formatting? Excel-根据其他突出显示的单元格使用条件格式突出显示单元格 - Excel - Highlight a cell using conditional formatting based on other cells that are highlighted Excel条件格式 - 根据每列顶部的值突出显示单元格 - Excel conditional formatting - highlight cells based on a value at the top of each column 使用Excel条件格式-想要突出显示与另一个单元格区域中的任何单元格匹配的区域中的单元格 - With Excel Conditional Formatting - Want to Highlight Cells in a range that match any from another range of cells Excel条件格式基于4个单元格? - Excel Conditional Formatting based on 4 cells? 条件格式-突出显示是为没有离散匹配的单元格着色 - Conditional Formatting - highlight is coloring cells with no discrete match 条件格式-突出显示公式不同的单元格? - Conditional Formatting - highlight cells where formula is different? Excel条件格式可根据两个范围内的单元格内容突出显示行不同的颜色 - Excel conditional formatting to highlight row different colours depending on content of cells within two ranges 尝试突出显示大于 15 的单元格时,Excel 中的条件格式选择错误的行 - Conditional Formatting in Excel selecting wrong rows when trying to highlight cells greater than 15
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM