简体   繁体   English

需要一系列单元格的公式 - 根据另一个单元格区域中存在的值来突出显示单元格

[英]Need formula for a range of cells - to highlight cells based on the presence of a value in another range of cells

I need a formula for conditional formatting.我需要一个条件格式的公式。 It's extremely simple, or so I thought.这非常简单,或者我是这么认为的。 If cell R4 has any number, such as 1935001011, cell E4 should be highlighted yellow.如果单元格 R4 有任何数字,例如 1935001011,单元格 E4 应突出显示为黄色。 If there is no value, there should be no highlight.如果没有价值,就不应该有亮点。 I need to do this for the entire range of cells in column E.我需要对 E 列中的整个单元格范围执行此操作。

The formula would simply be:公式很简单:

=ISNUMBER($R4)

And then the Applies To range (change the rows as needed):然后是适用于范围(根据需要更改行):

=$E$4:$E$1000

And just choose the conditional formatting options you want.只需选择您想要的条件格式选项。

尝试选择 ColumnE 并对其应用 CF 公式规则:

=ISNUMBER(R1)

Try:尝试:

  1. Select the range you want选择你想要的范围
  2. Home - Styles - Conditional formatting - Highlighting Cells Rules - More Rules - Use formula....主页 - 样式 - 条件格式 - 突出显示单元格规则 - 更多规则 - 使用公式......
  3. Copy =$R4<>""复制=$R4<>""
  4. Format - Fill - Select color Apply & Ok!格式 - 填充 - 选择颜色应用并确定!

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

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